Skip to content

Conversation

JackHowa
Copy link
Contributor

@JackHowa JackHowa commented Nov 5, 2021

Was getting an error on start:

@JackHowa ➜ /workspaces/algorithms-exercises (main) $ npm start

> [email protected] start /workspaces/algorithms-exercises
> parcel index.html

ℹ️ Server running at http://localhost:1234
🚨 Build failed.
@parcel/transformer-babel: babelCore(...).loadPartialConfigAsync is not a function
TypeError: babelCore(...).loadPartialConfigAsync is not a function
    at load (/workspaces/algorithms-exercises/node_modules/@parcel/transformer-babel/lib/config.js:115:41)
    at loadConfig (/workspaces/algorithms-exercises/node_modules/@parcel/transformer-babel/lib/BabelTransformer.js:66:30)
    at Transformation.loadTransformerConfig (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:741:13)
    at Transformation.loadPipeline (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:679:31)
    at async Transformation.loadNextPipeline (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:717:24)
    at async Transformation.runPipelines (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:434:24)
    at async Transformation.run (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:316:19)
    at async Child.handleRequest (/workspaces/algorithms-exercises/node_modules/@parcel/workers/lib/child.js:255:9)

Noticed a peer dependency needed updating via npm i

npm WARN @parcel/[email protected] requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself.
npm WARN @parcel/[email protected] requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself.

Jack Howard added 2 commits November 5, 2021 15:56
Full error message: 🚨 Build failed. @parcel/transformer-babel: babelCore(...).loadPartialConfigAsync is not a function TypeError: babelCore(...).loadPartialConfigAsync is not a function     at load (/workspaces/algorithms-exercises/node_modules/@parcel/transformer-babel/lib/config.js:115:41)     at loadConfig (/workspaces/algorithms-exercises/node_modules/@parcel/transformer-babel/lib/BabelTransformer.js:66:30)     at Transformation.loadTransformerConfig (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:741:13)     at Transformation.loadPipeline (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:679:31)     at async Transformation.loadNextPipeline (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:717:24)     at async Transformation.runPipelines (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:434:24)     at async Transformation.run (/workspaces/algorithms-exercises/node_modules/@parcel/core/lib/Transformation.js:316:19)     at async Child.handleRequest (/workspaces/algorithms-exercises/node_modules/@parcel/workers/lib/child.js:255:9) @JackHowa ➜ /workspaces/algorithms-exercises (main ✗) $ npm i npm WARN @babel/[email protected] requires a peer of @babel/core@^7.4.0-0 but none is installed. You must install peer dependencies yourself. npm WARN @babel/[email protected] requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself. npm WARN @babel/[email protected] requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself. npm WARN @parcel/[email protected] requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself. npm WARN @parcel/[email protected] requires a peer of @babel/core@^7.12.0 but none is installed. You must install peer dependencies yourself. npm WARN [email protected] No repository field. npm WARN [email protected] No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})  audited 1455 packages in 6.245s  142 packages are looking for funding   run `npm fund` for details
.DS_Store
.cache/
public/
.parcel-cache
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also updated to gitignore these files on start locally. I used local because codesandbox was having some performance issues for me, possibly due to brave

@btholt
Copy link
Owner

btholt commented Nov 6, 2021

thank you!

@btholt btholt merged commit 5b2edb0 into btholt:main Nov 6, 2021
@JackHowa
Copy link
Contributor Author

JackHowa commented Nov 7, 2021

Thanks @btholt for your work!

@JackHowa JackHowa deleted the FIX-babel-core-update-error branch November 8, 2021 15:32
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

Successfully merging this pull request may close these issues.

2 participants