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

Uncaught TypeError #8

Open
wandersonareis opened this issue Jan 10, 2023 · 3 comments
Open

Uncaught TypeError #8

wandersonareis opened this issue Jan 10, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@wandersonareis
Copy link

Uncaught TypeError: Cannot read properties of undefined (reading 'createElement')

return /#PURE/react__WEBPACK_IMPORTED_MODULE_0__["default"].createElement("i", null, "Loading...");

Using npm start.
Change tag or remove not resolve.

@maraf
Copy link
Owner

maraf commented Jan 11, 2023

Thanks for the report.

@wandersonareis
Copy link
Author

Maybe.
If you remove the QR Image component, it works.
When you call the QrImage component the undefined variable problem happens and nothing appears on the screen.
I removed the dotnet wasm Generate call and the problem persists. I put in values manually and the same error of variabel undefined. I removed everything in the QrImage function, leaving a

tag, also this undefined happened.

@maraf
Copy link
Owner

maraf commented Jan 12, 2023

The errors seems different, but it is still npm start that has a problem with the two uses of webpack (lib & app). Removing QrImage component solves the problem you see because /#PURE/react__WEBPACK_IMPORTED_MODULE_0__["default"] won't be used any more.

I'm thinking why your error is different from the one everybody else sees in #6.

What version of webpack do you use?

@maraf maraf added the bug Something isn't working label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants