Skip to content
This repository was archived by the owner on Jan 16, 2025. It is now read-only.
This repository was archived by the owner on Jan 16, 2025. It is now read-only.

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

@lili21

Description

@lili21

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions