Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andymac4182 opened this issue Feb 26, 2024 · 0 comments

Comments

@andymac4182
Copy link

馃悰 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant