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.

browserify-shim as a dependency?

See original GitHub issue

When installing through npm, importing the module and building I received the error Error: Cannot find module 'browserify-shim' from...

I’m not sure why this would be required but perhaps it needs to be moved from devDependencies to dependencies? I installed browserify-shim myself and It started building fine.

Maybe something on my end is messed up but I thought I’d add it here just in case. Thoughts?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
rohandascommented, May 26, 2016

I faced the same issue, except even after installing browserify-shim I got the error Label.js:74 Uncaught TypeError: Cannot read property 'Component' of undefined, and am not sure how to solve that.

2reactions
andest01commented, Aug 1, 2016

I also ran into the same problem as @rohandas. Getting browserify-shim to work proved to be too daunting, so I’m uninstalling this and moving to another solution. I’ll use this solution on other projects, just not this one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

browserify-shim - npm
1. Install browserify-shim dependency · 2. Register browserify-shim as a transform with browserify · 3. Provide browserify-shim config.
Read more >
Shimming dependencies of dependencies with browserify-shim
I'm trying to refactor a library that uses Browserify by shimming certain modules out of the bundle using browserify-shim. Specifically, the library uses ......
Read more >
browserify-shim-dependency - npm package | Snyk
The npm package browserify-shim-dependency receives a total of 1 weekly downloads. As such, browserify-shim-dependency popularity was classified as limited.
Read more >
Shimming dependencies of dependencies when working with ...
An explanation of how one can make browserify built Javascript files utilise globally defined dependencies within child dependencies.
Read more >
Gulp and browserify-shim. faster builds and more tooling
The goal is to automate as much as we can, keeping our builds and non-NPM dependencies easy to maintain and update. If you've...
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