Skip to content

TypeError: lib.init is not a function #396

@mostafa-raafat

Description

@mostafa-raafat

Just trying to load a webpack remote That I'm sure 100% it work as i use it in other webpack projects.

As you can see it load with 200 so the url itself is correct
Screenshot 2023-04-08 at 17 37 54
Screenshot 2023-04-08 at 17 37 39

Versions
originjs: ^1.2.1
node: 15.14.0

And this is a child vite.config.js I tried to use 'var' | 'esm' | 'systemjs' but all of them return same error
Screenshot 2023-04-08 at 17 33 22

What is Expected?
to display the remote entry in my parent component

What is actually happening?
nothing loads and throws lib.init is not a function error
Screenshot 2023-04-08 at 17 33 03

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions