-
Notifications
You must be signed in to change notification settings - Fork 50
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
Cannot start freshly generated vue app due to "Rule can only have one resource source" error #268
Comments
Also experiencing this. This makes the project essentially unusable. @ZachJW34 any input? |
@AlexJWayne Playing around I managed to get it to work. I ran the migrate command ( |
@AlexJWayne are you still experiencing this issue? I wasn't able to reproduce this and the reproduction you provided gives me a "Page Not Found". Can you post another reproduction? @mgray88 Vue 2.7 had some webpack changes, so maybe the npm i bumped it and it resolved itself. |
Same issue, and the steps above did not work 🤨 |
@ZachJW34 I apologize that I missed the notifications on this! And I'm sorry the repo was private. I've fixed that now and you should be able to see the repo.
Still, I would expect the out of the box virgin repo to work. |
I may have spoke too soon. I was able to get it working with a fresh install, but in an existing monorepo that |
I think The culprit seems to be webpack v5. Rolling back to webpack v4.43.0 seems to work, but that breaks other projects. According to https://nx.dev/guides/webpack-5:
Which leads me here: #225 :( |
repeated steps from issue message having same error. `
INFO Starting development server...
} ————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
Failed tasks:
Hint: run the command with --verbose for more details. $ nx report
Node : 14.20.0 nx : 14.6.4
|
Ok i have managed it working.
this steps required after initial steps for clean setup of vue v2 project. |
I also have the same issue. RIght now I can't get anything to work with this plugin. I've tried both vue 2 and vue 3 but get errors on both. If I run vue 3 I will get error: NX Cannot read property 'NormalModule' of undefined Both of these errors can be solved by downgrading webpack to version 4 but this will cause other problems probably because NX only seems to support webpack 5 these days. For example my react-native project that I've added in the same workplace will stop working if I downgrade to webpack 4 Any news on this @ZachJW34 ? 🙂 |
Can the webpack version be upgraded? Seems like the proper solution. |
I have recently published @nx-plus/vue@15.0.0-rc.0 which now used vue-cli v5 (webpack 5). I haven't published any docs/migrations yet but if you're curious you can try it out! It requires v15 of Nx. I'm going to be working over the next week to write some docs and migrations so stay tuned! |
This is actually unusable, thought i was doing something wrong, but following README led to this error. Starting to use NX without this package. |
Current Behavior
A cryptic error is thrown when trying to serve the app without modification from the generator.
Produces this output:
Expected Behavior
nx serve my-app
should serve the applicationSteps to Reproduce
I ran the followed commands to create a totally blank nx workspace and create a blank vue app.
I put the result of that in this github repo: https://github.com/AlexJWayne/vue-test
I also tried other configurations of the genrator (vue3, not using babel, plain css) but got the same result.
Failure Logs
Full error with verbose logging:
Environment
Plugin name and version: @nx-plus/vue@4.1.0
The text was updated successfully, but these errors were encountered: