Home

Issue: 3024

Error: Could not compile template

[issue link]

Hello! I’m working on my project, today switched from npm to pnpm and when node_modules is installed with pnpm i got the following error:

Error: Could not compile template D:\work\au2revsite\site\node_modules\.registry.npmjs.org\nuxt\1.4.0\node_mod ules\nuxt\lib\app\App.js: Cannot resolve “bootstrap/dist/css/bootstrap.css” from “D:\work\au2revsite\site\bootstra p\dist\css\bootstrap.css”

  • builder.js:471 Promise.all.templatesFiles.map
    [site]/[1.4.0]/[nuxt]/lib/builder/builder.js:471:17``

I have in dependencies:

“dependencies”: {
“ajv”: “^6.2.1”,
“axios”: “^0.18.0”,
“bootstrap-vue”: “^2.0.0-rc.2”,
“jquery”: “^3.3.1”,
“nuxt”: “^1.0.0”,
“vue-style-loader”: “^4.0.2”,
“webp-loader”: “^0.2.1”,
“webpack”: “^3.11.0”
},

How to fix this?

This question is available on Nuxt.js community (#c2619)