plasmo
plasmo copied to clipboard
[BUG] Sass import error in Parcel 2.9.3
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: https://github.com/parcel-bundler/parcel/pull/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
- [x] I agree to follow this project's Code of Conduct
- [x] I checked the current issues for duplicate problems.
Thanks for the flag @joshuawalker - we should def upgrade to the latest Parcel upstream!