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

This component does not compile #8

Open
jeanbza opened this issue Jan 18, 2017 · 1 comment
Open

This component does not compile #8

jeanbza opened this issue Jan 18, 2017 · 1 comment

Comments

@jeanbza
Copy link

jeanbza commented Jan 18, 2017

ERROR in ./~/babel-core/lib/api/node.js
Module not found: Error: Can't resolve 'fs' in '/Users/pivotal/workspace/pivotal-ui/styleguide_new/node_modules/babel-core/lib/api'
 @ ./~/babel-core/lib/api/node.js 58:10-23
 @ ./~/babel-core/index.js
 @ ./~/react-live-editor/live-compile.js
 @ ./~/react-live-editor/index.js
 @ ./src/app.jsx

ERROR in ./~/babel-core/lib/transformation/file/options/build-config-chain.js
Module not found: Error: Can't resolve 'fs' in '/Users/pivotal/workspace/pivotal-ui/styleguide_new/node_modules/babel-core/lib/transformation/file/options'
 @ ./~/babel-core/lib/transformation/file/options/build-config-chain.js 31:10-23
 @ ./~/babel-core/lib/transformation/file/options/option-manager.js
 @ ./~/babel-core/lib/api/node.js
 @ ./~/babel-core/index.js
 @ ./~/react-live-editor/live-compile.js
 @ ./~/react-live-editor/index.js
 @ ./src/app.jsx

ERROR in ./~/babel-core/lib/helpers/resolve.js
Module not found: Error: Can't resolve 'module' in '/Users/pivotal/workspace/pivotal-ui/styleguide_new/node_modules/babel-core/lib/helpers'
 @ ./~/babel-core/lib/helpers/resolve.js 34:14-31
 @ ./~/babel-core/lib/transformation/file/options/option-manager.js
 @ ./~/babel-core/lib/api/node.js
 @ ./~/babel-core/index.js
 @ ./~/react-live-editor/live-compile.js
 @ ./~/react-live-editor/index.js
 @ ./src/app.jsx

ERROR in ./~/convert-source-map/index.js
Module not found: Error: Can't resolve 'fs' in '/Users/pivotal/workspace/pivotal-ui/styleguide_new/node_modules/convert-source-map'
 @ ./~/convert-source-map/index.js 2:9-22
 @ ./~/babel-core/lib/transformation/file/index.js
 @ ./~/babel-core/lib/api/node.js
 @ ./~/babel-core/index.js
 @ ./~/react-live-editor/live-compile.js
 @ ./~/react-live-editor/index.js
 @ ./src/app.jsx

ERROR in ./~/debug/src/node.js
Module not found: Error: Can't resolve 'fs' in '/Users/pivotal/workspace/pivotal-ui/styleguide_new/node_modules/debug/src'
 @ ./~/debug/src/node.js 183:15-28
 @ ./~/debug/node.js
 @ ./~/babel-core/lib/transformation/file/logger.js
 @ ./~/babel-core/lib/transformation/file/index.js
 @ ./~/babel-core/lib/api/node.js
 @ ./~/babel-core/index.js
 @ ./~/react-live-editor/live-compile.js
 @ ./~/react-live-editor/index.js
 @ ./src/app.jsx
@joelburget
Copy link
Owner

I'll try to fix the files uploaded to npm so they don't import fs (this dependency comes from babel-core). But in the meantime you can get unstuck by adding the following to your webpack config:

  node: {
    fs: 'empty',
    net: 'empty',
    module: '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

2 participants