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

Module not found: Error: Can't resolve 'fs' in ... #10511

Closed
skruglikov opened this issue Aug 6, 2017 · 1 comment
Closed

Module not found: Error: Can't resolve 'fs' in ... #10511

skruglikov opened this issue Aug 6, 2017 · 1 comment

Comments

@skruglikov
Copy link

I try to connect the module Handlebars via app.js

app.js
import Handlebars from 'handlebars';

I get an error when starting the project:
[17:59:21] Error in plugin 'webpack-stream' Message: ./~/handlebars/lib/index.js Module not found: Error: Can't resolve 'fs' in '/Users/s.kruhlikov/Server/zurb.greeceyachts/node_modules/handlebars/lib' resolve 'fs' in '/Users/s.kruhlikov/Server/zurb.greeceyachts/node_modules/handlebars/lib' Parsed request is a module using description file: /Users/s.kruhlikov/Server/zurb.greeceyachts/node_modules/handlebars/package.json (relative path: ./lib) Field 'browser' doesn't contain a valid alias configuration after using description file: /Users/s.kruhlikov/Server/zurb.greeceyachts/node_modules/handlebars/package.json (relative path: ./lib) resolve as module

@kball
Copy link
Contributor

kball commented Aug 17, 2017

This looks like an issue with webpack or handlebars... I found this issue on the handlebars project that might help: handlebars-lang/handlebars.js#1174

@kball kball closed this as completed Aug 17, 2017
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

2 participants