You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am simply trying to convert from CRA to ParcelV2 on an established project
💻 Code Sample
Seems either yarn install d3
or import * as d3 from "d3";
🌍 Your Environment
Software
Version(s)
Parcel
2.12.0
Node
18.19.1
npm/Yarn
1.22.22
Operating System
Windows 11 Pro 64-bit (10.0, Build 22631) (22621.ni_release.220506-1250)
The text was updated successfully, but these errors were encountered:
aefnor
changed the title
Importing D3 as causing TheLayout to produce invalid unicode escape sequence on D3.random
Importing D3 is causing TheLayout to produce invalid unicode escape sequence on D3.random
Apr 2, 2024
As a workaround, you can downgrade @parcel/optimizer-swc to 2.10.3
(Not sure if that will help, I think the bug occurs even before the minifier runs.)
You are right, It seemed to work after downgrading but now it still doesn't (maybe some cache). I think the only actual workaround will be to migrate to other bundler.
🐛 bug report
Importing D3 into my react app that is being migrated from CRA produces invalid unicode escape sequence when passing in the params for D3.random.
import * as d3 from "d3";
causes TheLayout to produce
🎛 Configuration (.babelrc, package.json, cli command)
🤔 Expected Behavior
I would expect it to produce something along the lines of the other D3.random functions
😯 Current Behavior
💁 Possible Solution
🔦 Context
I am simply trying to convert from CRA to ParcelV2 on an established project
💻 Code Sample
Seems either
yarn install d3
or
import * as d3 from "d3";
🌍 Your Environment
The text was updated successfully, but these errors were encountered: