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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

@parcel/packager-js: Got unexpected null with CSS module composes #9635

Open
mischnic opened this issue Apr 11, 2024 · 0 comments
Open

@parcel/packager-js: Got unexpected null with CSS module composes #9635

mischnic opened this issue Apr 11, 2024 · 0 comments

Comments

@mischnic
Copy link
Member

mischnic commented Apr 11, 2024

馃悰 bug report

A CSS module file useing composes fails with this error:

@parcel/packager-js: Got unexpected null

  Error: Got unexpected null
      at nullthrows (node_modules/nullthrows/nullthrows.js:7:15)
      at node_modules/@parcel/packager-js/lib/ScopeHoistingPackager.js:918:51
      at Array.every (<anonymous>)
      at node_modules/@parcel/packager-js/lib/ScopeHoistingPackager.js:917:35
      at Array.filter (<anonymous>)
      at ScopeHoistingPackager.buildAssetPrelude (node_modules/@parcel/packager-js/lib/ScopeHoistingPackager.js:907:60)
      at ScopeHoistingPackager.buildAsset (node_modules/@parcel/packager-js/lib/ScopeHoistingPackager.js:393:48)
      at ScopeHoistingPackager.visitAsset (node_modules/@parcel/packager-js/lib/ScopeHoistingPackager.js:348:17)
      at node_modules/@parcel/packager-js/lib/ScopeHoistingPackager.js:448:58
      at String.replace (<anonymous>)

馃 Expected Behavior

Works

馃槸 Current Behavior

Fails with the error

馃拋 Possible Solution

馃敠 Context

Originally reported by @arty-name in #8375 (comment)

馃捇 Code Sample

Minimal reproduction: https://github.com/mischnic/parcel-issue-9634

馃實 Your Environment

Software Version(s)
Parcel e60cbeb
Node
npm/Yarn
Operating System
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant