-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Failed to parse source map #828
Comments
Can confirm that too, the |
PRs welcome to fix this in a way that is consistent with what other libraries provide here. I'm not personally very familiar with common practice in this regard. |
Even i'm getting same errors. |
Same issue here, don't known how to fix that. Issue with build script? |
I'm having the same issue. For reference, this has been discussed before: #20 I'm using CRA and it doesn't offer the option to configure the |
Can someone make a reproduction repo and share a link here? Issues with modules/imports such as this one require a lot of detail to reproduce: your language JS vs TS, module system (package.json |
I've prepared basic example (based on Create React App): https://github.com/PawelJ-PL/zod_issue_828. The only change is that I added zod: PawelJ-PL/zod_issue_828@b43f7d9. Just run |
Hello, especially to CRA user. I don't know why but zod is not going well with Till the zod developer team resolve this issue, it is needed to config manually when do CRA :) {
...
"dependencies": {
...
"react-scripts": "4.0.3",
...
},
...
} |
react-scripts 5.0.0 introduced Webpack 5, so it's probably reason. As temporary workaround I disabled generating source map in my project ( |
react-scripts 5.0.0 also adds |
For the moment I removed source maps. Shipping ts files in the bundle isn't a great solution - it bloats the bundle and causes issues with certain build pipelines. |
Using zod: 3.11.6
We are having warning in
index.mjs
apparently the referenced
src\types.ts
is not shipped with package, leading to such error.The text was updated successfully, but these errors were encountered: