Closed gatkinsNZ closed 4 years ago
@gatkinsNZ I have the same problem. Do you have a .env.test file in your root directory? If so be sure to set NODE_ENV=production
! Or maybe you somehow set the NODE_ENV
somewhere else? It has to be production
!!!! This was my trap.
@Bastczuak Your right, that fixed my problem. Thanks for your help!
I have this same issue, but setting NODE_ENV to production doesn't work for me.
make sure you unset NODE_ENV before serving.
for some reason if NODE_ENV is already set in environment variables then development server doesn't start.
so if you have done
export NODE_ENV=****
then do
unset NODE_ENV
Environment
vue-cli 4.2.3 vue-cli-plugin-vuetify 2.0.5 Browsers: Chrome 80.0.3987.132 OS: Windows 10
Steps to reproduce
$ vue create test-app $ cd test-app $ vue add vuetify $ node_modules\.bin\vue-cli-service build --mode test
Expected Behavior
App builds successfully under Test mode
Actual Behavior
App fails to build with 104 "Failed to resolve loader: null-loader" errors
Other comments
App does successfully build using dev or production mode.
I see the vuetify plugin has a description saying its for vue-cli 3, so does it not yet support vue-cli 4 (which has been out quite a while now, and I see v4.2 solves a "critical CORS vulnerability")?