defaultConfig is not defined
meta-pratap-ranawat opened this issue · 6 comments
Hi there,
I am getting a error on browser i.e. Unhandled rejection ReferenceError: defaultConfig is not defined.
error say that in ./node_modules/aurelia-trumbowyg-plugin/dist/**/index.js
Step followed by me
- au new /webpack and typescript project/
- npm i jquery trumbowyg aurelia-trumbowyg-plugin
- plugin added in main.ts
.plugin(PLATFORM.moduleName('aurelia-trumbowyg-plugin')) - jquery add in wedpack.config.js
new ProvidePlugin({
'jQuery': 'jquery'
}),
- au run --watch
No error node console: compiled successful
but on browser 'Hello world!' message is not visible
on browser console shows error
Unhandled rejection ReferenceError: defaultConfig is not defined.
Please help me to find out problem.
Thanks in advance
Hi, sorry for the delay, its fixed in 0.1.5
also when using webpack add the svg icons:
import svgPath from 'trumbowyg/dist/ui/icons.svg';
...
aurelia.use.plugin(PLATFORM.moduleName('aurelia-trumbowyg-plugin'), {svgPath});
...
Hi @arabsight ,
Can you please let me know the webpack.config.js settings for file/url loader for SVG because when I do import svgPath from 'trumbowyg/dist/ui/icons.svg'; I get the error "Cannot find module" 'trumbowyg/dist/ui/icons.svg'
Thanks
Hi @arabsight ,
Sorry but I cannot find the v0.1.5 of this plugin, I can only see v0.1.2 and v0.1.1 in github
the version is on npm so just reinstall, as for the svg could be a typescript thing because I use js, I didn't touch the webpack config
thanks @arabsight, problem is resolved now.