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

postcss fails: @parcel/transformer-postcss: Cannot read properties of undefined #9541

Closed
eekboom opened this issue Feb 25, 2024 · 3 comments
Closed

Comments

@eekboom
Copy link

eekboom commented Feb 25, 2024

🐛 bug report

I tried to add postcss support to my mantine web app.
However, parcel fails while transforming the css with this error:

@parcel/transformer-postcss: Cannot read properties of undefined (reading 'input')

  TypeError: Cannot read properties of undefined (reading 'input')
      at Rule.toJSON (C:\dev\dev\github\eekboom\mantine-min\node_modules\postcss\lib\node.js:330:40)
      at C:\dev\dev\github\eekboom\mantine-min\node_modules\postcss\lib\node.js:322:22
      at Array.map (<anonymous>)
      at Root.toJSON (C:\dev\dev\github\eekboom\mantine-min\node_modules\postcss\lib\node.js:320:29)
      at Object.transform (C:\dev\dev\github\eekboom\mantine-min\node_modules\@parcel\transformer-postcss\lib\PostCSSTransformer.js:245:21)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Transformation.runTransformer (C:\dev\dev\github\eekboom\mantine-min\node_modules\@parcel\core\lib\Transformation.js:568:5)
      at async Transformation.runPipeline (C:\dev\dev\github\eekboom\mantine-min\node_modules\@parcel\core\lib\Transformation.js:346:36)
      at async Transformation.runPipelines (C:\dev\dev\github\eekboom\mantine-min\node_modules\@parcel\core\lib\Transformation.js:229:40)
      at async Transformation.run (C:\dev\dev\github\eekboom\mantine-min\node_modules\@parcel\core\lib\Transformation.js:149:21)

💻 Code Sample

I made a SSCCE here:
https://github.com/eekboom/mantine-min

That project contains both vite and parcel and starts fine with vite, but fails with parcel.

Software Version(s)
Parcel 2.11.0
Node 20.11.0
npm/Yarn yarn 4.0.2
Operating System Windows 10
@eekboom eekboom changed the title postcss step fails with @parcel/transformer-postcss: Cannot read properties of undefined postcss fails: @parcel/transformer-postcss: Cannot read properties of undefined Feb 25, 2024
@eekboom
Copy link
Author

eekboom commented Mar 2, 2024

Same problem still with parcel 2.12.0 :-(

Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs.

@github-actions github-actions bot added the Stale Inactive issues label Aug 30, 2024
@smilingkylan
Copy link

smilingkylan commented Oct 6, 2024

I have also run into this issue. And others have run into the same issue:
web-infra-dev/rspack#5600

@github-actions github-actions bot removed the Stale Inactive issues label Oct 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants