Closed catelina95 closed 5 years ago
I can't replicate this issue, probably related to how you bundle your assets. I'd suggest trying to install style inject manually npm install style-inject
.
npm install style-inject
can't solve this problem.
哈哈, 谢谢啦.. 我解决这个问题了... 我用你的项目里的源文件解决的. thank you very much..☺️
@eolant in your dist you are referencing style-inject while there no peer dep for it. And its referenced really wrong way e.g. ../node_modules/styles_inject - which would end up into non existing path. So your dist is broken..
@aldarund Looks like rollup postcss and bili doing something weird. I was able to find and import statement in rollup-plugin-postcss but i'm not sure yet how to resolve this.
Actually there is a way to bundle modules in all builds. I think I will go with this option.
Cannot find module '../node_modules/style-inject/dist/style-inject.es.js