Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following after tutorial of code sharing leads to errors #343

Open
gustawdaniel opened this issue Sep 27, 2020 · 0 comments
Open

Following after tutorial of code sharing leads to errors #343

gustawdaniel opened this issue Sep 27, 2020 · 0 comments

Comments

@gustawdaniel
Copy link

https://github.com/nativescript-vue/nativescript-vue.org/blob/master/content/docs/en/getting-started/8-code-sharing.md

errors:

Platform android successfully added. v6.5.3
Preparing project...

Using tns-android v6.5.3 which requires nsconfig.json to be present.
Writing nsconfig.json based on the values set in nativescript.config.(js|ts).
You may add nsconfig.json to .gitignore as the CLI will regenerate it as necessary.

/home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/cli.js:93
				throw err;
				^

Error: Cannot find module 'nativescript-dev-webpack'
Require stack:
- /home/daniel/pro/open_cash_manager/app/node_modules/vue-cli-plugin-nativescript-vue/index.js
- /home/daniel/pro/open_cash_manager/app/node_modules/@vue/cli-service/lib/Service.js
- /home/daniel/pro/open_cash_manager/app/webpack.config.js
- /home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/utils/convert-argv.js
- /home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/cli.js
- /home/daniel/pro/open_cash_manager/app/node_modules/webpack/bin/webpack.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:966:15)
    at Function.Module._load (internal/modules/cjs/loader.js:842:27)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (/home/daniel/pro/open_cash_manager/app/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (/home/daniel/pro/open_cash_manager/app/node_modules/vue-cli-plugin-nativescript-vue/index.js:15:19)
    at Module._compile (/home/daniel/pro/open_cash_manager/app/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (/home/daniel/pro/open_cash_manager/app/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at idToPlugin (/home/daniel/pro/open_cash_manager/app/node_modules/@vue/cli-service/lib/Service.js:145:14)
    at /home/daniel/pro/open_cash_manager/app/node_modules/@vue/cli-service/lib/Service.js:184:20
    at Array.map (<anonymous>)
    at Service.resolvePlugins (/home/daniel/pro/open_cash_manager/app/node_modules/@vue/cli-service/lib/Service.js:170:10)
    at new Service (/home/daniel/pro/open_cash_manager/app/node_modules/@vue/cli-service/lib/Service.js:32:25)
    at Object.<anonymous> (/home/daniel/pro/open_cash_manager/app/webpack.config.js:8:13)
    at Module._compile (/home/daniel/pro/open_cash_manager/app/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14)
    at Module.require (internal/modules/cjs/loader.js:1026:19)
    at require (/home/daniel/pro/open_cash_manager/app/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at WEBPACK_OPTIONS (/home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/utils/convert-argv.js:114:13)
    at requireConfig (/home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/utils/convert-argv.js:116:6)
    at /home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/utils/convert-argv.js:123:17
    at Array.forEach (<anonymous>)
    at module.exports (/home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/utils/convert-argv.js:121:15)
    at /home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/cli.js:71:45
    at Object.parse (/home/daniel/pro/open_cash_manager/app/node_modules/yargs/yargs.js:576:18)
    at /home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/cli.js:49:8
    at Object.<anonymous> (/home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/cli.js:366:3)
    at Module._compile (internal/modules/cjs/loader.js:1138:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
    at Module.load (internal/modules/cjs/loader.js:986:32)
    at Function.Module._load (internal/modules/cjs/loader.js:879:14) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/home/daniel/pro/open_cash_manager/app/node_modules/vue-cli-plugin-nativescript-vue/index.js',
    '/home/daniel/pro/open_cash_manager/app/node_modules/@vue/cli-service/lib/Service.js',
    '/home/daniel/pro/open_cash_manager/app/webpack.config.js',
    '/home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/utils/convert-argv.js',
    '/home/daniel/pro/open_cash_manager/app/node_modules/webpack-cli/bin/cli.js',
    '/home/daniel/pro/open_cash_manager/app/node_modules/webpack/bin/webpack.js'
  ]
}

but this package nativescript-dev-webpack was replaced by @nativescript/webpack": "~3.0.0", in

tns migrate --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant