snowpack installing... bootstrap, jquery, popper.js
✘ /var/www/html/calc/node_modules/jquery/dist/jquery.js?commonjs-proxy
Error: '__moduleExports' is not exported by node_modules/jquery/dist/jquery.js, imported by /var/www/html/calc/node_modules/jquery/dist/jquery.js?commonjs-proxy
at error (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:5400:30)
at Module.error (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:9824:16)
at handleMissingExport (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:9725:28)
at Module.traceVariable (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:10163:24)
at ModuleScope.findVariable (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:8770:39)
at Identifier$1.bind (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:4403:40)
at ExportDefaultDeclaration.bind (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:3152:23)
at Program$1.bind (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:3148:31)
at Module.bindReferences (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:9796:18)
at Graph.link (/home/alwin/.npm/_npx/14647/lib/node_modules/snowpack/node_modules/rollup/dist/shared/node-entry.js:13429:20)
With this in my package.json:
"snowpack": {
"webDependencies": [
"bootstrap",
"jquery",
"popper.js"
]
},
"dependencies": {
"bootstrap": "^4.4.1",
"jquery": "^3.4.1",
"popper.js": "^1.16.1"
}
install all dependencies + snowpack using npm and then use snowpack to serve the assets
and long logs/code should be shared through paste services
Обсуждают сегодня