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.

Failed to resolve entry for package "webext-bridge".

See original GitHub issue

I added vitest/unit-test support to the base code, but when running the test command yarn test:unit I m getting error:

Error: Failed to resolve entry for package "webext-bridge". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "webext-bridge". The package may have incorrect main/module/exports specified in its package.json.
 ❯ packageEntryFailure node_modules/vite/dist/node/chunks/dep-f5552faa.js:30629:11
 ❯ resolvePackageEntry node_modules/vite/dist/node/chunks/dep-f5552faa.js:30625:9
 ❯ tryNodeResolve node_modules/vite/dist/node/chunks/dep-f5552faa.js:30440:20
 ❯ Context.resolveId node_modules/vite/dist/node/chunks/dep-f5552faa.js:30257:28
 ❯ Object.resolveId node_modules/vite/dist/node/chunks/dep-f5552faa.js:36922:55
 ❯ processTicksAndRejections ../../../../internal/process/task_queues.js:95:5
 ❯ async TransformContext.resolve node_modules/vite/dist/node/chunks/dep-f5552faa.js:36721:23   
 ❯ async normalizeUrl node_modules/vite/dist/node/chunks/dep-f5552faa.js:73701:34
 ❯ async TransformContext.transform node_modules/vite/dist/node/chunks/dep-f5552faa.js:73843:57 
 ❯ async Object.transform node_modules/vite/dist/node/chunks/dep-f5552faa.js:36985:30

Here is the stackblitz link: https://stackblitz.com/edit/github-sratr2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
tmkxcommented, Feb 8, 2022

@tmkx Is there any alternate that can be tried out until its fixed?

  1. patch webext-bridge package https://www.npmjs.com/package/patch-package
  2. clone webext-bridge repo, and make a local link

Wait for this PR to be merged, it won’t take too long.

0reactions
tmkxcommented, Apr 24, 2022

vitest integrated in #76, close this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Running on root directory "Failed to resolve entry for package"
Failed to resolve entry for package "/my-vue-app". The package may have incorrect main/module/exports specified in its package.json: Failed ...
Read more >
reactjs - Failed to resolve entry for package "notistack5". The ...
I found the solution, the problem was in the package.json file of the notistack5 module. "module": "dist/notistack.esm.js" instead of ...
Read more >
Integrating browser extensions with Symantec Endpoint ...
Uninstall the browser extension by removing the Google Chrome entry from the AD GPO policy. Uninstall the SEP client. Reinstall the SEP client ......
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