NativeScript migrate 6 to 8. "Executing webpack failed with exit code 1." - nativescript

We have an app that is based off the BottomNavigation template and I had it all working in Android. When we tried it on iOS we ran into conflicts with software and dependency versions so updated everything on both systems in order to align things.
Here is what we are using:
NativeScript: 8.1.5
Angular CLI: 13.0.3
Node: 16.13.1
Webpack: 5.0.4
I have run ns migrate. Here is the package.json:
"description": "Reports App | Mobile Expense Reports",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"scripts": {
"lint": "tslint \"app/**/*.ts\""
},
"dependencies": {
"#angular-devkit/build-angular": "^13.1.4",
"#angular/animations": "^12.2.5",
"#angular/common": "^12.2.5",
"#angular/compiler": "^12.2.5",
"#angular/core": "^13.1.3",
"#angular/forms": "^12.2.5",
"#angular/http": "8.0.0-beta.10",
"#angular/platform-browser": "^12.2.5",
"#angular/platform-browser-dynamic": "^12.2.5",
"#angular/router": "^12.2.5",
"#nativescript/angular": "^12.2.0",
"#nativescript/core": "~8.1.1",
"#nativescript/fingerprint-auth": "^8.0.0",
"nativescript-app-sync": "^1.0.6",
"nativescript-bottom-navigation": "^2.0.5",
"nativescript-camera": "^4.0.2",
"nativescript-drop-down": "^5.0.6",
"nativescript-fancyalert": "^3.0.9",
"nativescript-fingerprint-auth": "^7.0.2",
"nativescript-fontawesome": "^1.0.0",
"nativescript-gradient": "^2.0.1",
"nativescript-imagepicker": "^7.1.0",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-modal-datetimepicker": "^1.1.4",
"nativescript-pdf-view": "^2.1.0",
"nativescript-theme-core": "~1.0.4",
"nativescript-toast": "^1.4.6",
"nativescript-ui-listview": "^8.2.0",
"reflect-metadata": "~0.1.10",
"ruby": "^0.6.1",
"rxjs": "~7.3.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"#angular/compiler-cli": "^12.2.15",
"#nativescript/android": "8.1.1",
"#nativescript/webpack": "^5.0.4",
"#ngtools/webpack": "^12.2.5",
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"codelyzer": "~4.5.0",
"extract-text-webpack-plugin": "~3.0.2",
"lazy": "1.0.11",
"sass": "~1.39.0",
"tslint": "~5.12.1",
"typescript": "~4.3.5",
"uglifyjs-webpack-plugin": "^1.1.2"
},
"main": "./app/main.ts"
}
When I run ns run android I am stuck on this:
Searching for devices...
Preparing project...
webpack is watching the files...
C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40
throw new Error("The target entry-point \"" + invalidTarget.entryPoint.name + "\" has missing dependencies:\n" +
^
Error: The target entry-point "undefined" has missing dependencies:
- nativescript-angular/element-registry
at TargetedEntryPointFinder.findEntryPoints (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40:23)
at C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\analyze_entry_points.js:29:41
at SingleProcessExecutorSync.SingleProcessorExecutorBase.doExecute (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\single_process_executor.js:28:29)
at C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:59
at SyncLocker.lock (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\locking\sync_locker.js:34:24)
at SingleProcessExecutorSync.execute (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:27)
at Object.mainNgcc (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\main.js:74:25)
at Object.process (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\index.js:29:23)
at NgccProcessor.processModule (C:\Users\myApp\node_modules\#ngtools\webpack\src\ngcc_processor.js:175:16)
at C:\Users\myApp\node_modules\#ngtools\webpack\src\ivy\host.js:146:18
at C:\Users\myApp\node_modules\#ngtools\webpack\src\ivy\host.js:76:24
at Array.map (<anonymous>)
at Object.host.resolveModuleNames (C:\Users\myApp\node_modules\#ngtools\webpack\src\ivy\host.js:74:32)
at actualResolveModuleNamesWorker (C:\Users\myApp\node_modules\typescript\lib\typescript.js:109497:133)
at resolveModuleNamesWorker (C:\Users\myApp\node_modules\typescript\lib\typescript.js:109760:26)
at resolveModuleNamesReusingOldState (C:\Users\myApp\node_modules\typescript\lib\typescript.js:109857:24)
Executing webpack failed with exit code 1.
I came across this post: Nativescript Error: Executing webpack failed with exit code 1
so I tried changing the webpack version to 5.0.0-rc.8 in package.json and got the following similar errors:
Searching for devices...
Preparing project...
webpack is watching the files...
Compiling #angular/common : module as esm2015
Compiling #angular/animations : module as esm2015
Compiling listview-directives : main as commonjs
Compiling #nativescript/angular/polyfills : module as esm2015
Compiling #angular/animations/browser : module as esm2015
Compiling #angular/platform-browser : module as esm2015
Compiling #angular/router : module as esm2015
Compiling #angular/forms : module as esm2015
Compiling #angular/common/http : module as esm2015
Compiling #angular/platform-browser/animations : module as esm2015
Compiling #angular/http : module as esm5
Compiling #nativescript/angular : module as esm2015
C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40
throw new Error("The target entry-point \"" + invalidTarget.entryPoint.name + "\" has missing dependencies:\n" +
^
Error: The target entry-point "undefined" has missing dependencies:
- nativescript-angular/element-registry
at TargetedEntryPointFinder.findEntryPoints (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\entry_point_finder\targeted_entry_point_finder.js:40:23)
at C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\analyze_entry_points.js:29:41
at SingleProcessExecutorSync.SingleProcessorExecutorBase.doExecute (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\single_process_executor.js:28:29)
at C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:59
at SyncLocker.lock (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\locking\sync_locker.js:34:24)
at SingleProcessExecutorSync.execute (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\execution\single_process_executor.js:57:27)
at Object.mainNgcc (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\src\main.js:74:25)
at Object.process (C:\Users\myApp\node_modules\#angular\compiler-cli\ngcc\index.js:29:23)
at NgccProcessor.processModule (C:\Users\myApp\node_modules\#ngtools\webpack\src\ngcc_processor.js:175:16)
at C:\Users\myApp\node_modules\#ngtools\webpack\src\ivy\host.js:146:18
at C:\Users\myApp\node_modules\#ngtools\webpack\src\ivy\host.js:76:24
at Array.map (<anonymous>)
at Object.host.resolveModuleNames (C:\Users\myApp\node_modules\#ngtools\webpack\src\ivy\host.js:74:32)
at actualResolveModuleNamesWorker (C:\Users\myApp\node_modules\typescript\lib\typescript.js:109497:133)
at resolveModuleNamesWorker (C:\Users\myApp\node_modules\typescript\lib\typescript.js:109760:26)
at resolveModuleNamesReusingOldState (C:\Users\myApp\node_modules\typescript\lib\typescript.js:109857:24)
Executing webpack failed with exit code 1.
I have tried various things like deleting node_modules, hooks and package-lock.json and reinstalling with npm i. I still get back to these errors.
Any ideas? Been kicking it around for ages now.
Thanks.
========== UPDATE
#RonEvans I will see if I can provide a tripped down version.
I went back to a working app version in NS 6 and re-did the migration more carefully.
Here is the current set-up:
Angular CLI: 13.2.2
Node: 16.13.2
Package Manager: npm 8.5.0
OS: win32 x64
Angular: 13.1.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
#angular-devkit/architect 0.1301.4
#angular-devkit/build-angular 13.1.4
#angular-devkit/core 13.1.4
#angular-devkit/schematics 13.2.2 (cli-only)
#angular/http 8.0.0-beta.10+1.sha-a28b3e3
#ngtools/webpack 13.1.4
#schematics/angular 13.2.2 (cli-only)
rxjs 7.4.0
typescript 4.5.5
package.json
"description": "Reports App | Mobile Expense Reports",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"scripts": {
"lint": "tslint \"app/**/*.ts\""
},
"dependencies": {
"#angular/animations": "~13.1.1",
"#angular/common": "~13.1.1",
"#angular/compiler": "~13.1.1",
"#angular/core": "~13.1.3",
"#angular/forms": "~13.1.1",
"#angular/http": "8.0.0-beta.10",
"#angular/platform-browser": "~13.1.1",
"#angular/platform-browser-dynamic": "~13.1.1",
"#angular/router": "~13.1.1",
"#master.technology/permissions": "~2.0.1",
"#nativescript-community/ui-material-bottom-navigation": "^6.2.11",
"#nativescript/angular": "~13.0.0",
"#nativescript/core": "~8.1.1",
"#nativescript/fingerprint-auth": "8.0.0",
"nativescript-app-sync": "^2.0.0",
"nativescript-bottom-navigation": "^2.0.5",
"nativescript-camera": "^4.5.0",
"nativescript-drop-down": "^6.0.1",
"nativescript-fancyalert": "~3.1.1",
"nativescript-fingerprint-auth": "~7.0.2",
"nativescript-fontawesome": "^1.0.0",
"nativescript-gradient": "^2.0.1",
"nativescript-imagepicker": "~7.1.0",
"nativescript-iqkeyboardmanager": "^1.5.1",
"nativescript-modal-datetimepicker": "~2.1.5",
"nativescript-pdf-view": "^3.0.0-1",
"nativescript-permissions": "~1.3.12",
"nativescript-theme-core": "~2.0.24",
"nativescript-toast": "^2.0.0",
"nativescript-ui-listview": "~10.0.2",
"reflect-metadata": "~0.1.10",
"ruby": "^0.6.1",
"rxjs": "~7.4.0",
"zone.js": "~0.11.4"
},
"devDependencies": {
"#angular-devkit/build-angular": "~13.1.1",
"#angular/compiler-cli": "~13.1.1",
"#nativescript/android": "~8.1.1",
"#nativescript/webpack": "~5.0.0",
"#ngtools/webpack": "~13.1.1",
"#types/node": "14.6.2",
"babel-traverse": "6.26.0",
"babel-types": "6.26.0",
"babylon": "6.18.0",
"codelyzer": "~4.5.0",
"extract-text-webpack-plugin": "~3.0.2",
"lazy": "1.0.11",
"sass": "~1.39.0",
"tslint": "~5.12.1",
"typescript": "^4.5.5",
"uglifyjs-webpack-plugin": "^2.2.0"
},
"main": "./app/main.js"
}
We are getting the following error on ns run android.
$ tns run android
(node:21536) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:21536) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:21536) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
Support for Node.js 16.13.2 is not verified. NativeScript CLI might not install or run properly.
No project found at or above 'C:\Users\GerardDaly\apps\fileexpenses' and neither was a --path specified.
It appears the instant you hit Return on tns run android.
It doesn't even get as far as attempting to build it, which is odd.
I have been googling the messages but haven't found anything useful.
Any ideas at all. Thanks.

Related

Duplicate "graphql" modules cannot be used at the same time

Good morning/afternoon stackoverflow. I'm using an npm package called #graphql-codegen/cli to generate type definitions/utilites for my GraphQL schema. Recently, I've been encountering an error each time I try to run graphql-codegen command/script. This is the error that I get
"Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results."
...
"Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed."
I'm fairly certain this issue is with my environment, not my project. I attempted to create a brand new project from scratch and still received the same error. Here are the things I've tried
Reinstalling node_modules
Using the resolutions property in package.json
Using different versions of the graphql/graphql-cli packages
Completely wiping out my global npm packages
I've spent the last couple of days attempting to resolve this error, but I'm all out of ideas. Any thoughts or recommendations are much appreciated. Also, below is a link to a codesandbox that contains the relevant files
https://codesandbox.io/s/graphql-codegen-cli-example-qq5cj
I had the same problem with codegen.
src/generated/graphql.tsx
Error: Cannot use GraphQLObjectType "FieldError" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.
running codegen.yml
overwrite: true
schema: "http://localhost:4001/graphql"
documents: "src/graphql/**/*.graphql"
generates:
src/generated/graphql.tsx:
plugins:
- "typescript"
- "typescript-operations"
- "typescript-urql"
I think i had conflicting packages. Removing "urql", which i think caused the problem, and reinstalling it solved the error.
yarn run v1.22.17
$ graphql-codegen --config codegen.yml
√ Parse configuration
√ Generate outputs
with package.json
{
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"gen": "graphql-codegen --config codegen.yml"
},
"dependencies": {
"#chakra-ui/icons": "^1.0.0",
"#chakra-ui/react": "^1.8.5",
"#emotion/react": "^11.0.0",
"#emotion/styled": "^11.0.0",
"formik": "^2.2.9",
"framer-motion": "^4.0.3",
"next": "latest",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"graphql": "^16.3.0",
"urql": "^2.2.0"
},
"devDependencies": {
"#graphql-codegen/cli": "^2.6.2",
"#graphql-codegen/typescript": "2.4.5",
"#graphql-codegen/typescript-operations": "2.3.2",
"#graphql-codegen/typescript-urql": "^3.5.3",
"#graphql-codegen/urql-introspection": "^2.1.1",
"#types/node": "^17.0.21",
"graphql-tag": "^2.12.6",
"typescript": "^4.5.5"
}
}
You can edit your package.json as needed. Delete the file 'yarn.lock', 'package-lock.json' and the folder 'node_modules' to clear your dependencies. And run 'npm install' / 'yarn install' to reinstall your dependencies.
Have fun!

Does multiple packages and dependencies effect the size of final build of React-Native android release

I am a month into react-native and going through the learning process. Does adding too many packages somehow affect the size of the final android release. I also want to know if is it good practice to use the same project for multiple apps. Is it safe to use this many dependencies in a single project?
"dependencies": {
"#react-native-community/masked-view": "^0.1.5",
"#react-native-firebase/app": "^6.2.0",
"#react-native-firebase/auth": "^6.2.0",
"native-base": "^2.13.8",
"react": "16.9.0",
"react-native": "0.61.5",
"react-native-calendars": "^1.220.0",
"react-native-contacts": "^5.0.6",
"react-native-gesture-handler": "^1.5.3",
"react-native-maps": "0.26.1",
"react-native-safe-area-context": "^0.6.2",
"react-native-star-rating": "^1.1.0",
"react-native-vector-icons": "^6.6.0",
"react-navigation": "^4.0.10",
"react-navigation-stack": "^2.0.13"
},
Basically Yes
But to see how much each package takes
You should check with this tool
cost of modules
Cost of modules
Find out which of your dependencies is slowing you down
npm install -g cost-of-modules
Run cost-of-modules in the directory you are working in.
cost-of-modules

How do I enable SASS Compiling in Cookiecutter Django?

in the documentation of cookiecutter-django relating to SASS Compiling and Live Reload it's stated that I only have to enter "npm start" (after installing npm of course) in the main project folder to enable Live-Reload and SASS compiling. I was wondering how this should be possible without a package.json file but tried it nevertheless, maybe some hidden thing I did not know about. But npm init of course told me that a package.json was missing. I initialized a new project with bootstrap compilation and gulp enabled, same outcome. Still no package.json. Am I missing some key-point? Or is the documentation in this case maybe incomplete? Where do I get the required package.json from? :)
In the project generation at the beginning, you probably chose "None" on the "js_task_runner" step. If you chose "Gulp" here, it will generate gulpfile.js and package.json file, after which you'll be able to use npm install.
As mentioned in other answers, when you start your project and then choose none for task runner options, it will not work. See js_task_runner on cookiecutter-django documentation.
May I ask where you tried to run npm install? The package.json file is located in the root of your app, so you have to run commands from there.
It should be possible to add the needed files afterwards manually. Create a package.json file in the root directory of your app and add following code. Important: Change name to the name of your app.
{
"name": "CHANGE_TO_NAME_OF_YOUR_APP",
"version": "0.1.0",
"dependencies": {},
"devDependencies": {
"bootstrap": "4.1.1",
"gulp-concat": "^2.6.1",
"jquery": "3.3.1",
"popper.js": "1.14.3",
"autoprefixer": "^9.4.7",
"browser-sync": "^2.14.0",
"cssnano": "^4.1.10",
"gulp": "^4.0.0",
"gulp-imagemin": "^5.0.3",
"gulp-plumber": "^1.2.1",
"gulp-postcss": "^8.0.0",
"gulp-rename": "^1.2.2",
"gulp-sass": "^4.0.2",
"gulp-uglify-es": "^1.0.4",
"pixrem": "^5.0.0"
},
"engines": {
"node": ">=8"
},
"browserslist": [
"last 2 versions"
],
"scripts": {
"dev": "gulp"
}
}
Since this project uses gulp.js as task runner you need additionally to the package.json also a gulpfile.js file. Code from this example should work. Check also if you have a scss file in name_of_your_app/static/sass/project.scss.
Now you should be able to run npm install in a first step and compile scss with npm run dev in a second step (see documentation).

Creating a NS 2.5 project with typescript

I'm trying to create a new 2.5 project with typescript.
tns info says 2.5.3 for NS and 2.5.2 for tns-core-modules.
tns create test --template tsc
When I compile, I get the following error:
`
Executing before-prepare hook from C:\Users\pc\nativescript\sd4\hooks\before-prepare\nativescript-dev-android-snapshot.js
Executing before-prepare hook from C:\Users\pc\nativescript\sd4\hooks\before-prepare\nativescript-dev-typescript.js
Found peer TypeScript 2.2.2
app/app.ts(8,22): error TS2307: Cannot find module 'application'.
app/bundle-config.ts(1,11): error TS2304: Cannot find name 'global'.
app/bundle-config.ts(3,5): error TS2304: Cannot find name 'require'.
app/bundle-config.ts(6,5): error TS2304: Cannot find name 'global'.
app/bundle-config.ts(6,46): error TS2304: Cannot find name 'require'.
app/main-page.ts(8,22): error TS2307: Cannot find module 'ui/page'.
app/main-view-model.ts(23,18): error TS2339: Property 'notifyPropertyChange' does not exist on type 'HelloWorldModel'.
`
Here are the steps to create a project with the old template and using NativeScript 2.5.x
tns create test --template tns-template-hello-world-ts#2.5.0
cd test
rm -rf hooks
rm -rf platforms
rm -rf node_modules
tns platform add android#2.5.0
tns plugin remove tns-core-modules
tns plugin add tns-core-modules#2.5.2
tns build android
This will build you project with the tns-core-modules 2.5.2 and android runtime 2.5.0 and in the end your package.json will look like this
{
"description": "NativeScript Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "NativeScript Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.nativescript.myAppMod25",
"tns-android": {
"version": "2.5.0"
}
},
"dependencies": {
"nativescript-theme-core": "~1.0.2",
"tns-core-modules": "2.5.2"
},
"devDependencies": {
"babel-traverse": "6.4.5",
"babel-types": "6.4.5",
"babylon": "6.4.5",
"lazy": "1.0.11",
"nativescript-dev-android-snapshot": "^0.*.*",
"nativescript-dev-typescript": "~0.3.5",
"typescript": "~2.1.0"
}
}
Keep in mind that the first step will create for your tsconfig.json and references.d.ts with the content needed for NativeScript 2.5.x. You can use this application as a reference.

Compiling Assets (Laravel Mix) doesn't work for some dependencies

Currently, my package.json contains somes dev dependencies :
...
"devDependencies": {
"axios": "^0.15.3",
"bootstrap-sass": "^3.3.7",
"cross-env": "^3.2.3",
"font-awesome": "^4.7.0",
"jquery": "^2.1.4",
"laravel-mix": "0.*",
"lodash": "^4.17.4",
"unslider": "^2.0.3",
"vue": "^2.3.2"
},
...
When I first compiled all dependencies with npm run dev, eveything worked fine.
Then, I tried to install some others dependencies like unslider, as you can see. But now, I cannot understand why this package is not compiled in my app.js / app.css. I am missing something ?
after review the package in github, you have to add this:
In resources/assets/sass/app.scss:
#import "node_modules/unslider/src/scss/unslider.scss"
In resources/assets/js/app.js:
require('unslider');

Resources