You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yarn && yarn dev then open a browser, or change the file.
It uses @lingui/swc-plugin which is transforming nodes and some nodes may have a Dummy Spans (because there are nothing to map to).
It seems that /swc_ecma_transforms_react-0.172.14/src/refresh/mod.rs is trying to process these nodes in some circumstances and doesn't expect to receive node without a source mapping.
thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: DummyBytePos', /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/swc_ecma_transforms_react-0.172.14/src/refresh/mod.rs:159:74
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Input code
No response
Config
No response
Playground link
No response
Expected behavior
should not panic
Actual behavior
No response
Version
next@13.3.2
Additional context
No response
The text was updated successfully, but these errors were encountered:
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
Here is reproduction repo. https://github.com/behnamazimi/lingui-swc-plugin-issue-58
yarn && yarn dev
then open a browser, or change the file.It uses
@lingui/swc-plugin
which is transforming nodes and some nodes may have a Dummy Spans (because there are nothing to map to).It seems that
/swc_ecma_transforms_react-0.172.14/src/refresh/mod.rs
is trying to process these nodes in some circumstances and doesn't expect to receive node without a source mapping.Input code
No response
Config
No response
Playground link
No response
Expected behavior
should not panic
Actual behavior
No response
Version
next@13.3.2
Additional context
No response
The text was updated successfully, but these errors were encountered: