Skip to content

Webpack error when running preview:android after adding this plugin to an existing Laravel / Vue.js web app #44

New issue

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

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

Already on GitHub? # to your account

Open
mreall opened this issue May 21, 2020 · 3 comments

Comments

@mreall
Copy link

mreall commented May 21, 2020

I have an existing Laravel (6.x) / Vue.js (2.x) project into which I'd like to add nativescript-vue. I installed nativescript and ran tns doctor successfully. I installed the [vue-cli-plugin-nativescript-vue plugin][1], then copied the files from ns-example to the root directory of my project (including the src/ folder, .env.* files, babel.config.js, and nsconfig.json).

Now, when I try running npm run preview:android and scan the QR code on my android phone, I get the following messages and Webpack error:

Preparing project...
starting nativeConfig
Bundling application for entryPath .\main.native...
 WARN  A new version of sass-loader is available. Please upgrade for best experience.
Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration.plugins[2] misses the property 'apply'.
   function
   -> The run point of the plugin, required method.

Any suggestions on what I did wrong?

@arpit2438735
Copy link

arpit2438735 commented Mar 27, 2021

I am also facing with same issue. @mreall did it fix for you?

@mreall
Copy link
Author

mreall commented Mar 29, 2021

@arpit2438735 I ended up running separate projects for my Vue and NativeScript apps. Ultimately I'm glad I did as there's enough customization required for each that trying to keep them together would have been extremely challenging or would have impacted the UX.

@arpit2438735
Copy link

@mreall ok.Thanks for the info 👍

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Development

No branches or pull requests

2 participants