Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to make it work using browserify #8

Open
MathieuMorrissette opened this issue Nov 14, 2017 · 4 comments
Open

Unable to make it work using browserify #8

MathieuMorrissette opened this issue Nov 14, 2017 · 4 comments

Comments

@MathieuMorrissette
Copy link

Tried bundling this plugin with browserify and I keep getting errors like 'Error: Cannot find module './types/bmp''.

Do you guys know a workaround or something?

Best regards

@MathieuMorrissette
Copy link
Author

also tried using webpack and I kept getting errors with fs module

@EasonYou
Copy link

The same issue

@Danita
Copy link

Danita commented Apr 16, 2018

Same here on Webpack:

Module not found: Error: Can't resolve 'fs' in '/var/... .../node_modules/markdown-it-imsize/lib/imsize'

@pjlong
Copy link

pjlong commented May 21, 2018

Following this thread, adding the following to webpack config seems to work:

node: {
  fs: 'empty'
}

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

No branches or pull requests

4 participants