GithubHelp home page GithubHelp logo

intpp / swc-plugin-jsx-control-statements Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 2.0 46 KB

jsx-control-statements plugin for the SWC

Home Page: https://www.npmjs.com/package/swc-plugin-jsx-control-statements

Rust 57.51% JavaScript 42.49%

swc-plugin-jsx-control-statements's People

Contributors

intpp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

swc-plugin-jsx-control-statements's Issues

failed to invoke `swc-plugin-jsx-control-statements` as js transform plugin at node_modules

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)

Error message in rspack(https://rsbuild.dev/zh/config/tools/swc)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.