Skip to content
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

bundle failed - cannot access a scoped thread local variable without calling set first #157

Open
lili21 opened this issue Aug 11, 2022 · 0 comments

Comments

@lili21
Copy link

lili21 commented Aug 11, 2022

It can't bundle @arco-design/web-react.

source code

import { Button } '@arco-design/web-react';

spack config

module.exports = {
  entry: {
    web: __dirname + '/entry.js',
  },
  output: {
    path: __dirname + '/dist',
  },
  module: {},
};

error message after running npx spack

hread '<unnamed>' panicked at 'cannot access a scoped thread local variable without calling `set` first', /Users/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/scoped-tls-1.0.0/src/lib.rs:168:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: panic detected] { code: 'GenericFailure' }

version:
cli - 0.1.57
core - 1.2.223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant