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.

Shims are not available in NPM package

See original GitHub issue

Context

I am trying to add FilerWebpackPlugin to an existing Webpack configuration.

Problem

All imports of fs are properly replaced by node_modules/filer/shims/fs.js. However, that file cannot be found.

Analysis

The shims are not made available in the NPM package.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
humphdcommented, Nov 15, 2021

@bcheidemann ah, I see. We need to update https://github.com/filerjs/filer/blob/master/package.json#L77-L81 and potentially the build script to copy things where they are expected when you npm install filer. If you want to do that, that would be great.

0reactions
bcheidemanncommented, Nov 16, 2021

Confirmed, shims are now present 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

es-module-shims - npm
Start using es-module-shims in your project by running `npm i es-module-shims`. There are 24 other projects in the npm registry using ...
Read more >
Angular 12: No way to provide missing node shims used in ...
Just to recap, the question is: how can I provide Node.js shims to resolve crypto , stream and other modules in Angular 12...
Read more >
How to shim npm package dependency in browserify?
1 Answer 1 · No, this doesn't work. · Thanks, but I suggest you change the peerDependencies entry in the react-nouislider package defeats...
Read more >
npm shim from nodenv not accepted and prevents project ...
Install nodenv and prove presence and function of ~/.nodenv/shims/npm --version ... there is a bin/npm-cli.js script relative to the npm package directory.
Read more >
Project Shims – Using NPM modules with UI5 - SAP Blogs
NPM packages greatly help with easy installations and easy version management. This problem is now tackled in UI5 with the help of Project...
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