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

Didn't get a result from child compiler error occurs when dynamic routes params like /blogs/[blog-id] #1322

Closed
2 tasks done
Katsukiniwa opened this issue Feb 13, 2024 · 3 comments · Fixed by #1333
Closed
2 tasks done
Labels
bug Issue is caused by a bug in a Vanilla Extract package webpack Issue related to webpack

Comments

@Katsukiniwa
Copy link

Katsukiniwa commented Feb 13, 2024

Describe the bug

After upgrade @vanilla-extract/next-plugin from 2.3.5 to v2.3.6, Didn't get a result from child compiler error occurs when dynamic routes params like /blogs/[blog-id], but /blogs/[id] don't occur error.

This is minimum reproduce repository
https://github.com/Katsukiniwa/nextjs-vanilla-extract-css-playground

reproduce step is

  1. clone the above repository
  2. run npm install
  3. run npm run dev
  4. access to http://localhost:3000/blogs/1
image

Reproduction

https://github.com/Katsukiniwa/nextjs-vanilla-extract-css-playground/actions/runs/7880973075/job/21503841452

System Info

System:
    OS: macOS 14.3.1
    CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
    Memory: 327.86 MB / 32.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.11.0 - ~/.volta/tools/image/node/20.11.0/bin/node
    npm: 10.2.5 - ~/.volta/tools/image/npm/10.2.5/bin/npm
    pnpm: 8.14.3 - ~/.volta/bin/pnpm
  Browsers:
    Chrome: 121.0.6167.160
    Safari: 17.3.1
  npmPackages:
    @vanilla-extract/css: ^1.14.1 => 1.14.1 
    @vanilla-extract/next-plugin: ^2.3.6 => 2.3.6

Used Package Manager

npm

Logs

➜ npn run dev

> nextjs-vanilla-extract-css-playground@0.1.0 dev
> next dev

   ▲ Next.js 14.1.0
   - Local:        http://localhost:3000

 ✓ Ready in 2.7s
 ○ Compiling /blogs/[blog-id] ...
 ⨯ ./src/app/blogs/[blog-id]/page.css.ts
Error: Didn't get a result from child compiler
Import trace for requested module:
./src/app/blogs/[blog-id]/page.css.ts
 ⨯ ./src/app/blogs/[blog-id]/page.css.ts

Validations

@mrm007
Copy link
Contributor

mrm007 commented Feb 15, 2024

Hi @Katsukiniwa, thanks for reporting this.

It sounds like it's related to the latest fix we did for the Webpack plugin in #1247.

@mrm007 mrm007 added webpack Issue related to webpack bug Issue is caused by a bug in a Vanilla Extract package and removed pending triage labels Feb 15, 2024
@Katsukiniwa
Copy link
Author

@mrm007
Thanks!
However, I do not understand the modified PR that you taught me due to my lack of technical skills, and it appears difficult to resolve this issue on my own.
Is it possible for one of the maintainers to handle this issue?

@mrm007
Copy link
Contributor

mrm007 commented Feb 20, 2024

@Katsukiniwa sorry, I didn't mean to say the solution is in the linked PR. Just a note to self and for @askoufis, who recently worked on that part of the codebase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue is caused by a bug in a Vanilla Extract package webpack Issue related to webpack
Projects
None yet
2 participants