Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react: Uncaught TypeError: factory is not a function #211

Open
PaRoxUs opened this issue Dec 4, 2024 · 3 comments
Open

react: Uncaught TypeError: factory is not a function #211

PaRoxUs opened this issue Dec 4, 2024 · 3 comments

Comments

@PaRoxUs
Copy link

PaRoxUs commented Dec 4, 2024

Everythign works in dev mode, but if you build without adding:

        exposes: {
          './App': './src/App', // Needed for the build to work
        },

the app won't work and you get Uncaught TypeError: factory is not a function

@gioboa
Copy link
Collaborator

gioboa commented Dec 4, 2024

hi @PaRoxUs which framework are you using? can you create a basic reproduction please?

@PaRoxUs
Copy link
Author

PaRoxUs commented Dec 6, 2024

We are using react, I'll try my best to create an example, but it has to wait ATM.

@gioboa gioboa changed the title Uncaught TypeError: factory is not a function react: Uncaught TypeError: factory is not a function Dec 6, 2024
@sougiovn
Copy link

Got this error once, the cause was that I was using vite-plugin-top-level-await plugin and building for target >chrome87, which doesn't need this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants