Replies: 3 comments 4 replies
-
To add more details for the above, attaching a screenshot which shows the issue with https://github.com/swc-project/swc-loader/tree/master/example as well |
Beta Was this translation helpful? Give feedback.
0 replies
-
I found this is happening due to |
Beta Was this translation helpful? Give feedback.
3 replies
-
is there a workaround for this? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
I am not sure if this is a webpack/swc issue, because source maps look fine, but I am not able to open the actual source file mapped with the transpiled code.
I am trying to set up webpack with swc-loader, everything's working fine. Even the sourceMappingURL is pointing to the correct location (at least relatively).
.js.map
contains redirect URL to actual source to something likewebpack:///src/...
for webpack 4.x andwebpack://{roodir}/src/...
which I feel is correct (not sure though).The problem is both the above source URLs are not opening, and I am getting the following error:
Error while fetching an original source: NetworkError when attempting to fetch resource. Source URL: webpack://src/...
Webpack config has:
where swcConfig is similar for both ts/js templates:
The same issue happens with official swc examples as well https://github.com/swc-project/swc-loader/tree/master/example
Please help me out here, as I am trying to push
swc
tooling to our production, and without source mapping it would be hard to convince the team. 🙏🏾 🙇🏾Beta Was this translation helpful? Give feedback.
All reactions