intpp / swc-plugin-jsx-control-statements Goto Github PK
View Code? Open in Web Editor NEWjsx-control-statements plugin for the SWC
Home Page: https://www.npmjs.com/package/swc-plugin-jsx-control-statements
jsx-control-statements plugin for the SWC
Home Page: https://www.npmjs.com/package/swc-plugin-jsx-control-statements
I encountered an error when using optional chain syntax.
example code:
if (!selectRow?.pk_accasoa) {
return;
}
errors:
thread '<unnamed>' panicked at 'failed to invoke plugin: failed to invoke plugin on 'Some("D:\\yonyou\\project\\tdcwgk_front\\src\\gl\\gl_voucher\\container\\Welcome\\utils\\linkAssistDetail.js")'
Caused by:
0: failed to invoke `swc-plugin-jsx-control-statements` as js transform plugin at node_modules\swc-plugin-jsx-control-statements\swc_plugin_jsx_control_statements.wasm
1: RuntimeError: out of bounds memory access
at <unnamed> (<module>[86]:0x1bdb0)
at <unnamed> (<module>[86]:0x199d6)
at <unnamed> (<module>[86]:0x19c26)
at <unnamed> (<module>[86]:0x19c26)
at <unnamed> (<module>[159]:0x38318)
at <unnamed> (<module>[152]:0x35896)
at <unnamed> (<module>[117]:0x2bc74)
at <unnamed> (<module>[115]:0x27fae)
× React-typescript-boilerplate
Compiled with some errors in 309.49ms
ERROR in ./src/gl/gl_voucher/container/Welcome/utils/linkAssistDetail.js
Module build failed (from ./node_modules/swc-loader/src/index.js):
Error: failed to handle: failed to invoke plugin: failed to invoke plugin on 'Some("D:\\yonyou\\project\\tdcwgk_front\\src\\gl\\gl_voucher\\container\\Welcome\\utils\\linkAssistDetail.js")'
Caused by:
0: failed to invoke `swc-plugin-jsx-control-statements` as js transform plugin at node_modules\swc-plugin-jsx-control-statements\swc_plugin_jsx_control_statements.wasm
1: RuntimeError: out of bounds memory access
at <unnamed> (<module>[86]:0x1bdb0)
at <unnamed> (<module>[86]:0x199d6)
Please take the time to support the boss
Message: Cannot start a runtime from within a runtime. This happens because a function (like block_on
) attempted to block the current thread while the thread is being used to drive asynchronous tasks.
Location: /Users/runner/.cargo/registry/src/index.crates.io-6f17d22bba15001f/wasmer-wasix-0.9.0/src/runtime/task_manager/mod.rs:323
Run with COLORBT_SHOW_HIDDEN=1 environment variable to disable frame filtering.
Run with RUST_BACKTRACE=full to include source snippets.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ BACKTRACE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
1: _napi_register_module_v1
at
2: _napi_register_module_v1
at
3: _napi_register_module_v1
at
4: _napi_register_module_v1
at
5: _napi_register_module_v1
at
6: _wasmer_vm_imported_memory32_atomic_notify
at
7: _napi_register_module_v1
at
8: _napi_register_module_v1
at
9: _napi_register_module_v1
at
10: _napi_register_module_v1
at
11: _napi_register_module_v1
at
zsh: abort fap dev
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.