Giter VIP home page Giter VIP logo

Comments (13)

agubler avatar agubler commented on June 11, 2024 2

@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.

agubler avatar agubler commented on June 11, 2024 1

@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.

odoe avatar odoe commented on June 11, 2024

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.

odoe avatar odoe commented on June 11, 2024

@agubler a backport would be very helpful for us, thanks!

from cli-build-app.

agubler avatar agubler commented on June 11, 2024

@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.

agubler avatar agubler commented on June 11, 2024

@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.

odoe avatar odoe commented on June 11, 2024

That works great @agubler! Thanks a lot, now we can better demo use of our API with dojo, much appreciated!

from cli-build-app.

odoe avatar odoe commented on June 11, 2024

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.

agubler avatar agubler commented on June 11, 2024

That seems strange. We’ll try and have a look tomorrow.

from cli-build-app.

agubler avatar agubler commented on June 11, 2024

@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.

odoe avatar odoe commented on June 11, 2024

Lol, ok, that works. Thanks!

from cli-build-app.

agubler avatar agubler commented on June 11, 2024

@odoe Excellent, it looks like it is something to do with how the dependencies are installed which is annoying.

from cli-build-app.

denov avatar denov commented on June 11, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.