You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like a really semantic issue but a module error is thrown if not followed:
According to the Webpack Docs, the "default" key should be the last item in an exports field. See the details below to replicate and correct the error.
import Framework7 from 'framework7/bundle';
var app = new Framework7({/*...*/});
console output
C:\framework7>npx webpack --config webpack.config.js
assets by status 259 bytes [cached] 1 asset
./src/index.js 81 bytes [built] [code generated]
ERROR in ./src/index.js 1:0-43
Module not found: Error: Default condition should be last one
webpack 5.73.0 compiled with 1 error in 299 ms
To correct this error the "default" keys should be moved to below the "types" keys in package.json:
The text was updated successfully, but these errors were encountered:
It seems like a really semantic issue but a module error is thrown if not followed:
According to the Webpack Docs, the "default" key should be the last item in an
exports
field. See the details below to replicate and correct the error.package.json
webpack.config.js
src/index.js
console output
To correct this error the "default" keys should be moved to below the "types" keys in package.json:
The text was updated successfully, but these errors were encountered: