Closed odoe closed 3 years ago
I think I traced the issue down. I was able to get a better error message by changing the webpack dev.config
based on this response to the same issue I was having.
https://github.com/marcelklehr/toposort/issues/20#issuecomment-487128573
The error seems to stem from using try/catch without defining an error.
// fails to build
try {
something();
} catch {}
// this works
try {
something();
} catch (err) {}
Does the dojo build not support es2019 esm?
@odoe, @matt-gadd and I tracked down the issue to the html-webpack-plugin and have landed a PR that uses the latest version compatible with webpack 4 (that doesn't use toposort) - I think this is something that we could back port to v7, is that something that you would be interested in?
@agubler a backport would be very helpful for us, thanks!
@odoe Ran into another error during the build (different area) after resolving this one, will continue to look into it - once resolved as long as possible we'll look to back port
@odoe I think we resolved the other build issues and have backported the changes on version 7.0.5
, could you give it a try for us?
That works great @agubler! Thanks a lot, now we can better demo use of our API with dojo, much appreciated!
I think I spoke too soon. In a fresh project with 7.0.5
, I get this error in a build, even without our arcgis package.
./node_modules/@dojo/webpack-contrib/bootstrap-plugin/async.js
Module build failed (from ./node_modules/@dojo/webpack-contrib/static-build-loader/index.js):
That seems strange. We’ll try and have a look tomorrow.
@odoe I can reproduce, it's a problem we caused on the backport! Luckily we never made it latest so most consumers will still be on 7.0.6 - phew - thanks for letting us know
@odoe did you create a fresh project then manually install 7.0.5 independently? I reproduced the error earlier when doing that, but then I remove node_modules
and package-lock.json
and the error no longer happens. Could you give that a try for me?
Lol, ok, that works. Thanks!
@odoe Excellent, it looks like it is something to do with how the dependencies are installed which is annoying.
7.0.5 seem to fix this this error for me as well.
i couldn't upgrade to 7.0.5 from 7.0.0. i got some other strange webpack error. it did work with a fresh install after removing node_modules
and package-lock.json
If I try to build an app using @arcgis/core, I get a number of cyclic dependency errors.
This happens with
@dojo/cli-build-app
v7 and the v8-alpha-3 version.Bug??
There might be circular dependencies in @arcgis/core, but no other build tools throw this error, so I'm not sure if it's just some setting in the build pipeline that is extra strict or what the issue might be.
Package Version:
7.0.0 8.0.0-alpha.3
Code
I put a test app here. https://github.com/odoe/dojo-test-arcgis
Expected behavior:
Actual behavior: