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

linaria@4.1 breaks jest #1021

Closed
nstepien opened this issue Jul 25, 2022 · 4 comments · Fixed by #1024
Closed

linaria@4.1 breaks jest #1021

nstepien opened this issue Jul 25, 2022 · 4 comments · Fixed by #1024
Labels
bug report 🦗 Issue is probably a bug, but it needs to be checked bundler: rollup 🗞️ Issue is related to rollup bundler bundler: webpack 📦 Issue is related to webpack bundler cat: testing 🛡 Issue related to testing components needs: complete repro 🖥️ Issue need to have complete repro provided

Comments

@nstepien
Copy link
Contributor

Environment

  • Linaria version: 4.1.0
  • Bundler (+ version): webpack@5.72.0, rollup@2.71.1
  • Node.js version: 18.6.0
  • OS: Win11

Description

linaria@4 breaks jest, while it was working fine with linaria@3.

 FAIL  test/column/cellClass.test.ts
  ● Test suite failed to run

    Using the "css" tag in runtime is not supported. Make sure you have set up the Babel plugin correctly.

      1 | import { css } from '@linaria/core';
      2 |
    > 3 | export const row = css`
        |                        ^

Reproducible Demo

adazzle/react-data-grid#2962

@nstepien nstepien added bug report 🦗 Issue is probably a bug, but it needs to be checked needs: complete repro 🖥️ Issue need to have complete repro provided needs: triage 🏷 Issue needs to be checked and prioritized labels Jul 25, 2022
@github-actions github-actions bot added bundler: rollup 🗞️ Issue is related to rollup bundler bundler: webpack 📦 Issue is related to webpack bundler cat: testing 🛡 Issue related to testing components and removed needs: triage 🏷 Issue needs to be checked and prioritized labels Jul 25, 2022
@Anber Anber closed this as completed in 2abc55b Jul 26, 2022
@Anber
Copy link
Collaborator

Anber commented Jul 26, 2022

Maybe fixed :)

@nstepien
Copy link
Contributor Author

Package update soon? I'd love to try it

@Anber
Copy link
Collaborator

Anber commented Jul 27, 2022

@nstepien published.

@nstepien
Copy link
Contributor Author

It worked! Thank you very much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report 🦗 Issue is probably a bug, but it needs to be checked bundler: rollup 🗞️ Issue is related to rollup bundler bundler: webpack 📦 Issue is related to webpack bundler cat: testing 🛡 Issue related to testing components needs: complete repro 🖥️ Issue need to have complete repro provided
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants