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

The expression evaluated to 'undefined'. occurs recently. #1300

Closed
tsukuisan opened this issue Jul 25, 2023 · 1 comment · Fixed by #1302
Closed

The expression evaluated to 'undefined'. occurs recently. #1300

tsukuisan opened this issue Jul 25, 2023 · 1 comment · Fixed by #1302
Assignees
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 platform: next.js 🛠️ Issue related to next.js

Comments

@tsukuisan
Copy link

Environment

  • Linaria version: 4.2.6
  • Next.js version: 13.1.6
  • Node.js version: 16.15.1
  • Yarn version: 1.22.19
  • OS: macOS Ventura 13.2.1

Description

When I compile my project, this error message occurs.
SyntaxError: ***.tsx: The expression evaluated to 'undefined', which is probably a mistake.
This project was going well until the recent update, but it doesn't go well after then.

Reproducible Demo

  1. Clone this project.
    https://github.com/tsukuisan/Linaria_error
  2. Run yarn install.
  3. Run yarn run build.
@tsukuisan tsukuisan 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, 2023
@github-actions github-actions bot added bundler: webpack 📦 Issue is related to webpack bundler platform: next.js 🛠️ Issue related to next.js and removed needs: triage 🏷 Issue needs to be checked and prioritized labels Jul 25, 2023
@Anber Anber self-assigned this Jul 25, 2023
@Anber Anber closed this as completed in 10bcd24 Jul 25, 2023
@Anber
Copy link
Collaborator

Anber commented Jul 25, 2023

Hi @tsukuisan!

Thank you for the repo! Fixed.

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 platform: next.js 🛠️ Issue related to next.js
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants