question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not compatible with `parcel` package (only `parcel-bundler`)

See original GitHub issue

🐛 Bug Report

parcel is the new official name of the package, as the readme shows: https://github.com/parcel-bundler/parcel

⚠️  Parser "@svgr/parcel-plugin-svgr/lib/asset.js" failed to initialize when processing asset "node_modules/@primer/octicons/build/svg/reply.svg". Threw the following error:
Error: Cannot find module 'parcel-bundler'
Require stack:
- ./refined-github/node_modules/@svgr/parcel-plugin-svgr/lib/asset.js
- ./refined-github/node_modules/parcel/src/Parser.js
- ./refined-github/node_modules/parcel/src/Pipeline.js
- ./refined-github/node_modules/parcel/src/worker.js
- ./refined-github/node_modules/@parcel/workers/src/child.js
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:793:17)
    at Function.Module._load (internal/modules/cjs/loader.js:686:27)
    at Module.require (internal/modules/cjs/loader.js:848:19)
    at require (./refined-github/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at Object.<anonymous> (./refined-github/node_modules/@svgr/parcel-plugin-svgr/lib/asset.js:3:22)
    at Module._compile (./refined-github/node_modules/v8-compile-cache/v8-compile-cache.js:194:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
    at Module.load (internal/modules/cjs/loader.js:811:32)
    at Function.Module._load (internal/modules/cjs/loader.js:723:14)
    at Module.require (internal/modules/cjs/loader.js:848:19) falling back to RawAsset

To Reproduce

npm i parcel @svgr/parcel-plugin-svgr
parcel build

Try on any repo. Remove parcel-bundler and install parcel

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

3reactions
alexeychikkcommented, Oct 10, 2020

@gregberge How to configure it to work with Parcel v2? I am getting Error: No transformers found for "D:\myrepo\src\assets\icons\folder-src-open.svg".

1reaction
chopfitzroycommented, Feb 26, 2020

Should this work with Parcel 2?

Read more comments on GitHub >

github_iconTop Results From Across the Web

The plugin "parcel-validator-eslint" is not compatible with ...
bug report I created this plugin https://github.com/RyoheiTomiyama/parcel-validator-eslint I specified a package.json#engines.parcel. but, ...
Read more >
Migration
The first thing to note when upgrading from Parcel 1 to Parcel 2 is that the npm package name has changed from parcel-bundler...
Read more >
parcel-bundler | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
parcel - npm
Blazing fast, zero configuration web application bundler. Latest version: 2.8.0, last published: 23 days ago. Start using parcel in your ...
Read more >
Trouble building webapp with parcel-bundler (Not loading ...
js" which does not match the compiled bundle type "html". /Users/abc/Visual_Code/test/package.json:5:11 4 | "description": "", > 5 | ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found