parcel-bundler / parcel

The zero configuration build tool for the web. πŸ“¦πŸš€

Home Page:https://parceljs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@parcel/register throws error `parcel[_core(...).INTERNAL_RESOLVE] is not a function`

andymac4182 opened this issue Β· comments

πŸ› 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