- nuxt: v2.14.1
- node: v12.18.3
Steps to reproduce
- Upgrade a Nuxt project to latest 2.14.1
What is Expected?
What is actually happening?
Generating the commons file inside of
node_modules conflicts with Nuxt’s default
.gitignore rules which includes:
node_modules. This is problematic when deploying a static site relies on committing the
dist folder to a git repo. The end result is a deployed site that is missing the commons file.
This can be resolved by changing the .gitignore rule from:
/node_modules. Alternatively, it can be resolve by downgrading to Nuxt v2.14.0. Perhaps it would be ideal if the commons file wasn’t placed inside of a folder named “node_modules”.