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 build failed: ReferenceError: file is not defined #224

Closed
okonet opened this issue Nov 11, 2016 · 2 comments
Closed

Module build failed: ReferenceError: file is not defined #224

okonet opened this issue Nov 11, 2016 · 2 comments
Labels

Comments

@okonet
Copy link
Member

okonet commented Nov 11, 2016

You can reproduce the error by cloning this repository: https://github.com/okonet/react-scroll-sync

Getting following in the console:

ERROR in ./~/react-styleguidist/loaders/props.loader.js!./src/index.js
Module build failed: ReferenceError: file is not defined
    at Object.module.exports (/Users/okonet/Projects/OSS/react-sync-scroll/node_modules/react-styleguidist/loaders/props.loader.js:40:66)
 @ ./~/react-styleguidist/loaders/styleguide.loader.js! 3:213-289
Child html-webpack-plugin for "index.html":
         Asset    Size  Chunks       Chunk Names
    index.html  577 kB       0       
    chunk    {0} index.html 538 kB [rendered]
@sapegin
Copy link
Member

sapegin commented Nov 11, 2016

Trying to debug it but have a different error and very weird:

ERROR in   TypeError: Cannot read property 'request' of undefined

  - ExternalModuleFactoryPlugin.js:37 handleExternals
    [react-scroll-sync]/[webpack]/lib/ExternalModuleFactoryPlugin.js:37:33

  - ExternalModuleFactoryPlugin.js:46 next
    [react-scroll-sync]/[webpack]/lib/ExternalModuleFactoryPlugin.js:46:8
...

Looks like issues with Webpack installation on my Mac: this was already fixed.

@sapegin
Copy link
Member

sapegin commented Nov 11, 2016

One thing was definitely broken in Styleguidist: doclets examples.

@sapegin sapegin added the bug label Nov 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants