cli icon indicating copy to clipboard operation
cli copied to clipboard

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

Open lili21 opened this issue 3 years ago • 0 comments

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

lili21 avatar Aug 11 '22 06:08 lili21