Skip to content

EvalError: tslib_1.__importStar is not a function #1209

@layershifter

Description

@layershifter

Environment

  • Linaria version: @linaria/babel-preset@4.4.1
  • Bundler (+ version): N/A
  • Node.js version: Node 16
  • OS: N/A

Description

I checked the latest version on one of our projects and build there fails tslib_1.__importStar. In logs I noticed following:

2023-02-10T14:39:21.123Z linaria:module:00003 [code-cache] [] is missing ([ '__exportStar' ] were cached)
2023-02-10T14:39:21.123Z linaria:module:00003 [evaluated] get __importStar: undefined

Reproducible Demo

Note: I tried to build a smaller repro, but failed 🙃

EvalError: /home/projects/node-znzrvt/code/Button.js: tslib_1.__importStar is not a function in
| /home/projects/node-znzrvt/node_modules/@fluentui/react-icons/lib-cjs/icons/chunk-0.js
| /home/projects/node-znzrvt/node_modules/@fluentui/react-icons/lib-cjs/index.js
| /home/projects/node-znzrvt/code/Button.js

    at Module.evaluate (file:///home/projects/node-znzrvt/node_modules/@linaria/babel-preset/lib/module.js:362:13)
    at require.Object.assign.ensure (file:///home/projects/node-znzrvt/node_modules/@linaria/babel-preset/lib/module.js:302:13)
    at eval (file:///home/projects/node-znzrvt/node_modules/@fluentui/react-icons/lib-cjs/index.js:10:22)
    at eval (file:///home/projects/node-znzrvt/node_modules/@fluentui/react-icons/lib-cjs/index.js:103:3)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug report 🦗Issue is probably a bug, but it needs to be checkedneeds: complete repro 🖥️Issue need to have complete repro provided

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions