Closed skystar-p closed 6 years ago
Thanks for the report, this seems to be related to https://github.com/webpack/webpack/issues/6525.
This bug will affect webworker and node environments like SSR.
However, this feature will only be added in Webpack 5, so, the proper workaround is setting config.output.globalObject = 'this'
.
I will send a fix today.
@skystar-p could you confirm the issue is fixed for you in v0.0.15 ?
@alexcode Yes, it works like a charm. Thank you for the fast fix!
After upgrading this package to
0.0.14
, Vue fail to loadvue2vis
, sayingwindow is not defined
(even if the SSR is off).I solved this problem by adding
config.output.globalObject = 'this'
in./scripts/webpack.js
. But I want to inspect this issue more detailed.Can you take a look at this issue?