@parcel/register throws error `parcel[_core(...).INTERNAL_RESOLVE] is not a function`
andymac4182 opened this issue Β· comments
Andrew McClenaghan commented
π bug report
Trying to use @parcel/register
which is failing due to removing the INTERNAL_RESOLVE and INTERNAL_TRANSFORM functions in a9a3f09#diff-62db6c84b829a68e2621f1bd95d232fc3a59e31a446ba0734d23091756a8b9f2L348-L390
π Configuration (.babelrc, package.json, cli command)
{
"your": { "config": "here" }
}
π€ Expected Behavior
Transpilation to work
π― Current Behavior
Crashing
/Users/username/project/node_modules/@parcel/register/lib/register.js:153
parcel[_core().INTERNAL_RESOLVE]({
^
TypeError: parcel[_core(...).INTERNAL_RESOLVE] is not a function
at resolveFile (/Users/username/project/node_modules/@parcel/register/lib/register.js:153:39)
at _module.default._resolveFilename (/Users/username/project/node_modules/@parcel/register/lib/register.js:187:84)
at Module._load (node:internal/modules/cjs/loader:975:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:128:12)
at node:internal/main/run_main_module:28:49
π Possible Solution
Either add back in INTERNAL_RESOLVE or use unstable_resolve
π¦ Context
Unable to use @parcel/register
π» Code Sample
Example exists in parcel repo
π Your Environment
Software | Version(s) |
---|---|
Parcel | |
Node | |
npm/Yarn | |
Operating System |