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 6.2] Cannot create property 'message' on symbol 'Symbol(skip)' #1407

Closed
PierreGUI opened this issue Apr 26, 2024 · 6 comments · Fixed by #1408
Closed

[Linaria 6.2] Cannot create property 'message' on symbol 'Symbol(skip)' #1407

PierreGUI opened this issue Apr 26, 2024 · 6 comments · Fixed by #1408
Labels
bug report 🦗 Issue is probably a bug, but it needs to be checked bundler: webpack 📦 Issue is related to webpack bundler needs: complete repro 🖥️ Issue need to have complete repro provided

Comments

@PierreGUI
Copy link

Environment

I updated Linaria & wyw-in-js from previous latest to new latest:

  • "webpack": "^5.89.0",
  • "@babel/core": "^7.24.4",
  • "@linaria/react": "^6.2.0",
  • "@wyw-in-js/babel-preset": "^0.5.3",
  • "@wyw-in-js/webpack-loader": "^0.5.3",

Description

The only change to my code is the update of both packages, breaks the build with the following error:

 ERROR in ./src/components/shared/InfiniteList.view.tsx
  Module build failed (from ./node_modules/babel-loader/lib/index.js):
  TypeError: /Users/pierre/Chordify/chordify-front/client/src/components/shared/InfiniteList.view.tsx: Cannot create property 'message' on symbol 'Symbol(skip)'
      at run (/Users/pierre/Chordify/chordify-front/client/node_modules/@babel/core/lib/transformation/index.js:27:15)
@PierreGUI PierreGUI 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 Apr 26, 2024
@github-actions github-actions bot added bundler: webpack 📦 Issue is related to webpack bundler and removed needs: triage 🏷 Issue needs to be checked and prioritized labels Apr 26, 2024
@Anber
Copy link
Collaborator

Anber commented Apr 26, 2024

It happens when @wyw-in-js/webpack-loader and @linaria/react use different versions of @wyw-in-js/processor-utils. Could you please check the version of @wyw-in-js/processor-utils?

@PierreGUI
Copy link
Author

yes you're right:

├─┬ @linaria/[email protected]
│ └── @wyw-in-js/[email protected]
├─┬ @linaria/[email protected]
│ └── @wyw-in-js/[email protected]
└─┬ @wyw-in-js/[email protected]
  └─┬ @wyw-in-js/[email protected]
    └── @wyw-in-js/[email protected]

@Anber
Copy link
Collaborator

Anber commented Apr 26, 2024

I messed up with the release yesterday. It should be good now.

@PierreGUI
Copy link
Author

thanks, it builds again!

@glassdimlygr
Copy link

I get this with the following dependencies. We have a rollup build and another nextjs webpack build. The rollup build is a nested build. I am ensuring consistent resolution the yarn 4 package.json resolutions field. Any thoughts, here?

  "resolutions": {
    "@wyw-in-js/babel-preset": "0.5.4",
    "@wyw-in-js/transform": "0.5.4",
    "@wyw-in-js/webpack-loader": "0.5.4",
    "@linaria/babel-preset": "5.0.4",
    "@wyw-in-js/rollup": "0.5.4",
    "@linaria/core": "6.2.0",
    "@linaria/react": "6.2.1",
    "@linaria/shaker": "5.0.3",
    "@linaria/stylelint": "6.2.0",
    "linaria": "6.2.0"
  },

@glassdimlygr
Copy link

glassdimlygr commented Aug 21, 2024

Here's what you need to do to fix this:
Run yarn info @linaria/core or equivalent.

I see:

@linaria/core@npm:6.2.0
   ├─ Version: 6.2.0
   │
   └─ Dependencies
      └─ @wyw-in-js/processor-utils@npm:0.5.3 → npm:0.5.3

Now, install all of wyw deps from 0.5.3.

I had previously made the mistake of upgrading wyw directly.

If you have nested workspace dependencies, then if using yarn berry you can specify them in resolutions as well as specifying them normally in your package.json.

  "resolutions": {
    "@wyw-in-js/babel-preset": "0.5.3",
    "@wyw-in-js/transform": "0.5.3",
    "@wyw-in-js/webpack-loader": "0.5.3",
    "@linaria/babel-preset": "5.0.3",
    "@wyw-in-js/rollup": "0.5.3",
    "@linaria/core": "6.2.0",
    "@linaria/react": "6.2.1",
    "@linaria/shaker": "0.5.3",
    "@linaria/stylelint": "6.2.0",
   "@wyw-in-js/processor-utils": "0.5.3",
    "linaria": "6.2.0"
  },

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: webpack 📦 Issue is related to webpack bundler needs: complete repro 🖥️ Issue need to have complete repro provided
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants