I'm upgrading chart.js from 2.x to 3.x and it causes me problems when im developing (using parcel watch). However, when in production (parcel build) and even when I'm trying the parcel serve it works just fine.
I expected the difference between parcel watch and parcel serve was the built in dev server when using parcel serve but it seems like it treats dependencies differently.
π― Current Behavior
When using watch:
The error message:
RangeError: Maximum call stack size exceeded
..and it's pointing to this line in the code.
A temp fix for me would be to switch to using parcel serve instead of parcel watch, but doesnt feel that good to have to run a complete dev server in the background, taking up an extra port etc. My poor mac is on its knees as it is :-)
π bug report
I'm upgrading chart.js from 2.x to 3.x and it causes me problems when im developing (using
parcel watch
). However, when in production (parcel build
) and even when I'm trying theparcel serve
it works just fine.Works:
parcel serve --no-cache --public-url /dist
NODE_ENV=development API_ENDPOINT=http://localhost:8000 parcel build --public-url /dist --no-content-hash --no-optimize --no-cache
Does not work:
parcel watch --public-url /dist
NODE_ENV=development API_ENDPOINT=http://localhost:8000 parcel watch --no-cache --no-hmr --no-content-hash --public-url /dist
π Configuration (.babelrc, package.json, cli command)
Not using babel. My slightly censored package.json:
π€ Expected Behavior
I expected the difference between
parcel watch
andparcel serve
was the built in dev server when usingparcel serve
but it seems like it treats dependencies differently.π― Current Behavior
When using
watch
: The error message:RangeError: Maximum call stack size exceeded
..and it's pointing to this line in the code.π Possible Solution
A temp fix for me would be to switch to using
parcel serve
instead ofparcel watch
, but doesnt feel that good to have to run a complete dev server in the background, taking up an extra port etc. My poor mac is on its knees as it is :-)π¦ Context
π» Code Sample
My
index.ts
which is the only file transpiled:π Your Environment