Git Product home page Git Product logo

Comments (6)

akhmadullin avatar akhmadullin commented on August 10, 2024 4

I have the same problem after update of @loadable/component to 5.16.3 and @loadable/server to 5.16.2.

Some of the dependencies from my package.json:

"@loadable/component": "5.16.3",
"@loadable/server": "5.16.2",
"@loadable/babel-plugin": "5.16.1",
"@loadable/webpack-plugin": "5.15.2",
"webpack": "5.89.0",

from loadable-components.

7rulnik avatar 7rulnik commented on August 10, 2024 3

The reason for this is ESM migration which was introduced in #989

@loadable/server resolves to different file because it uses require https://unpkg.com/browse/@loadable/[email protected]/lib/sharedInternals.js (see line 6)

So basically we end up with two versions of @loadable/component.

image
image

As workaround you can set alias for CJS version for webpack:

resolve: {
    alias: {
      '@loadable/component': require.resolve('@loadable/component')
    }
}

from loadable-components.

theKashey avatar theKashey commented on August 10, 2024 1

Or we need to β€œesm” server as well.

from loadable-components.

theKashey avatar theKashey commented on August 10, 2024

"Quiet" is very concerning. It should blow up if something is not right, but quiet....

from loadable-components.

DonGissel avatar DonGissel commented on August 10, 2024

"Quiet" is very concerning. It should blow up if something is not right, but quiet....

Yeah, that was exactly my thinking as well. And as stated, downgrading to an older version immediately fixed it. I'll just stay on that version for now, but it's... weird.

from loadable-components.

anambl avatar anambl commented on August 10, 2024

I also have the same problem after updating @loadable/component and @loadable/server to latest version (and also silently failing). I am using exactly the same versions as akhmadullin

"@loadable/component": "5.16.3",
"@loadable/server": "5.16.2",
"@loadable/babel-plugin": "5.16.1",
"@loadable/webpack-plugin": "5.15.2",
"webpack": "5.89.0",

from loadable-components.

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.