Comments (13)
@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?
from cli-build-app.
@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
from cli-build-app.
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.
marcelklehr/toposort#20 (comment)
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?
from cli-build-app.
@agubler a backport would be very helpful for us, thanks!
from cli-build-app.
@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
from cli-build-app.
@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?
from cli-build-app.
That works great @agubler! Thanks a lot, now we can better demo use of our API with dojo, much appreciated!
from cli-build-app.
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):
from cli-build-app.
That seems strange. We’ll try and have a look tomorrow.
from cli-build-app.
@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?
from cli-build-app.
Lol, ok, that works. Thanks!
from cli-build-app.
@odoe Excellent, it looks like it is something to do with how the dependencies are installed which is annoying.
from cli-build-app.
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
from cli-build-app.
Related Issues (20)
- Compile legacy and modern builds in a single pass HOT 4
- Move to eslint for consumers
- POC build using snowpack HOT 3
- Command exits when using watch or serve HOT 1
- `single-bundle` and `omit-hash` schema options are unused
- Unable to use dependencies installed using npm link
- Avoid iltorb native dependency HOT 5
- POC build using esbuild HOT 1
- Source map paths are flattened
- Upgrade to webpack 5 HOT 1
- Proxy configuration not being honored HOT 4
- On my local machine i have problems to run the dojo "npm run build" command, please help, on other machines it just runs fine HOT 4
- Builds fail with web3 HOT 3
- Add the ability to store resources against individual pages in the cache for Build Time Render
- BTR should skip tel links HOT 1
- build fails after upgrading to v7 when there are widgets that use i18n with horrible error message
- @dojo/cli-build-app does not work with M1 macs
- Fresh Generated Sample Program get errors on compile, cannot proceed development HOT 3
- Bug #475 Fresh Generated Sample Program get errors on compile, cannot proceed development still happens
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli-build-app.