-
Notifications
You must be signed in to change notification settings - Fork 6
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
TypeScript Loader error when used with Create React App #9
Comments
I can look into this, however if you are starting a new project, I recommend that you look into Vite or Next, as CRA is deprecated. They stopped updating it years ago. |
I'm seeing the same error in a webpack typescript react app. NOT using cra.
I'm guessing the build was not ran before publishing, because looking at the installed package in my |
I'll check this out. |
I've updated to version 2.0.3 which now should output a compiled |
@ncoughlin At the moment, there is no type in the latest version of the package that breaks the build. I also noticed that you have a commit where you added them, but the latest version does not include this commit |
I'm getting an error when trying to use this with CRA, even with the TS compiler.
Failed to compile.
Module parse failed: The keyword 'interface' is reserved (4:0)
File was processed with these loaders:
You may need an additional loader to handle the result of these loaders.
It's similar to an issue explain here - facebook/create-react-app#5623 - the final comment suggests that the package should be compiled before publishing.
Hope that helps.
The text was updated successfully, but these errors were encountered: