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

ReferenceError: file is not defined #179

Closed
ahutchings opened this issue Sep 13, 2016 · 5 comments
Closed

ReferenceError: file is not defined #179

ahutchings opened this issue Sep 13, 2016 · 5 comments

Comments

@ahutchings
Copy link

ahutchings commented Sep 13, 2016

I'm getting the below reference error when building my project using styleguidist. It looks like the console logging that occurs in the catch block of props.loader.js is referencing a file variable that is declared in a different block. This could probably be fixed by initializing file as a var outside the try block scope.

Module build failed: ReferenceError: file is not defined
    at Object.module.exports (<snip>/node_modules/react-styleguidist/loaders/props.loader.js:40:66)
❯ node -v
v6.5.0
❯ npm -v
3.10.7
❯ cat package.json | grep version
  "version": "3.1.1"
@mik01aj
Copy link
Collaborator

mik01aj commented Sep 14, 2016

I can't see any scope problems with file in props.loader.js.

@ahutchings
Copy link
Author

Ah, I see that this was fixed in #173, but it has not been released to npm yet. Could we publish a new version to npm?

@masylum
Copy link

masylum commented Oct 5, 2016

Could we have a minor version with that fix in the meantime?

@sapegin
Copy link
Member

sapegin commented Oct 5, 2016

Nope, sorry for inconvenience. But I’ll make a new version this week anyway.

@sapegin
Copy link
Member

sapegin commented Oct 6, 2016

4.0.0 is out!

@sapegin sapegin closed this as completed Oct 6, 2016
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