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

Dev start error "Invalid host defined options" #35

Open
Nikoxx99 opened this issue Nov 4, 2021 · 5 comments
Open

Dev start error "Invalid host defined options" #35

Nikoxx99 opened this issue Nov 4, 2021 · 5 comments

Comments

@Nikoxx99
Copy link

Nikoxx99 commented Nov 4, 2021

Just updated from nuxt-build-optimisation to nuxt-webpack-optimisations, followed the migration guide, uninstalled the old one, installed the new version, remove node_modules/.cache, copy the suggested config to nuxt.config.js but it does not run.

My package.json dep list

"dependencies": {
"@nuxtjs/apollo": "^4.0.1-rc.5",
"@nuxtjs/axios": "^5.13.1",
"@nuxtjs/strapi": "^0.3.1",
"cookieparser": "^0.1.0",
"cross-env": "^5.2.0",
"graphql-tag": "^2.12.4",
"js-cookie": "^2.2.1",
"nuxt": "^2.15.4",
"nuxt-i18n": "^6.27.0",
"nuxt-webpack-optimisations": "^2.0.3",
"quagga": "^0.12.1"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^3.1.0",
"@nuxtjs/eslint-module": "^2.0.0",
"@nuxtjs/pwa": "^3.3.5",
"@nuxtjs/vuetify": "^1.11.3",
"babel-eslint": "^10.1.0",
"eslint": "^7.25.0",
"eslint-plugin-nuxt": "^1.0.0"
}

And when i run "npm run dev" this error appears.
FATAL Invalid host defined options 10:00:07

at ModuleContainer.module.exports (node_modules\nuxt-webpack-optimisations\module.cjs:3:3)
at ModuleContainer.addModule (node_modules@nuxt\core\dist\core.js:239:34)
at node_modules@nuxt\utils\dist\utils.js:639:43
at async ModuleContainer.ready (node_modules@nuxt\core\dist\core.js:51:7)
at async Nuxt._init (node_modules@nuxt\core\dist\core.js:478:5)

@harlan-zw
Copy link
Owner

Hey @Nikoxx99

I did come across this one as well, it's very strange. I wasn't able to dig into what the exact issue is, it seems like it's a problem with one of the locked dependencies. If you delete node_modules and re-install it may fix it, otherwise a very hacky solution that I found worked was removing the lock file and re-install the dependencies.

I'll keep looking into it if I can figure out a non-manual way to solve it

@cocolee
Copy link

cocolee commented Nov 23, 2021

hi @harlan-zw
first of all thanks for the plugin. I tried to delete node_modules and install again it's getting the same error 'Invalid host defined options'.

@testn
Copy link

testn commented Feb 4, 2022

I'm getting the same error as well.

@itsmnthn
Copy link

itsmnthn commented Mar 3, 2022

I was getting the same error.

rm lock file & node_modules then re-install dependancies works well (thanks to @harlan-zw)

@andorfermichael
Copy link

same issue, but deleting the lock file is no option as this could (and will in my case) break the whole application.

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

No branches or pull requests

6 participants