1 | bundle dev failed: Module .../node_modules/log4javascript/log4javascript.js does not export getRootLogger |
- Copy rollup.config.js from node_modules/@ionic/app-scripts/config into my own config directory.
- Change my package.json according to the documentation:
123"config"
: {
"ionic_rollup"
:
"./config/rollup.config.js"
},
- Add configuration for commonjs plugin in rollup.config.js:
12345678910111213plugins: [
commonjs({
include: [
'node_modules/log4javascript/**'
,
],
namedExports: {
'node_modules/log4javascript/log4javascript.js'
: [
'Appender'
,
'BrowserConsoleAppender'
,
'getLogger'
,
'getRootLogger'
,
'Level'
,
'LoggingEvent'
,
'logLog'
,
'PatternLayout'
]
}
}),
...
]
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.