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

[BUG] Sass import error in Parcel 2.9.3 #786

Open
2 of 3 tasks
joshuawalker opened this issue Oct 18, 2023 · 1 comment
Open
2 of 3 tasks

[BUG] Sass import error in Parcel 2.9.3 #786

joshuawalker opened this issue Oct 18, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@joshuawalker
Copy link

joshuawalker commented Oct 18, 2023

What happened?

Importing a framework like Primer.css fails with

Cannot create property 'importer' on string 'index.scss'

This has been fixed upstream in Parcel 2.10.0: parcel-bundler/parcel#9256

Version

Latest

What OS are you seeing the problem on?

MacOSX

What browsers are you seeing the problem on?

Chrome, Microsoft Edge

Relevant log output

TypeError: Cannot create property 'importer' on string 'index.scss'
    at loadConfig (.../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@parcel/transformer-sass/lib/SassTransformer.js:67:29)
    at async loadPluginConfig (.../node_modules/.pnpm/@[email protected]/node_modules/@parcel/core/lib/requests/ConfigRequest.js:52:21)
    at async Transformation.loadTransformerConfig (.../node_modules/.pnpm/@[email protected]/node_modules/@parcel/core/lib/Transformation.js:488:5)
    at async Transformation.loadPipeline (.../node_modules/.pnpm/@[email protected]/node_modules/@parcel/core/lib/Transformation.js:440:20)
    at async Transformation.run (.../node_modules/.pnpm/@[email protected]/node_modules/@parcel/core/lib/Transformation.js:146:20)
    at async Child.handleRequest (.../node_modules/.pnpm/@[email protected]_@[email protected]/node_modules/@parcel/workers/lib/child.js:193:9)

(OPTIONAL) Contribution

  • I would like to fix this BUG via a PR

Code of Conduct

  • I agree to follow this project's Code of Conduct
  • I checked the current issues for duplicate problems.
@joshuawalker joshuawalker added the bug Something isn't working label Oct 18, 2023
@louisgv louisgv changed the title [BUG] Sass import error in Parcel 2.0.93 [BUG] Sass import error in Parcel 2.9.3 Oct 19, 2023
@louisgv
Copy link
Contributor

louisgv commented Oct 19, 2023

Thanks for the flag @joshuawalker - we should def upgrade to the latest Parcel upstream!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants