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: config is not defined #60

Closed
mohamadgh opened this issue Dec 13, 2017 · 6 comments
Closed

ReferenceError: config is not defined #60

mohamadgh opened this issue Dec 13, 2017 · 6 comments

Comments

@mohamadgh
Copy link

i'm facing another issue here...
hopefully this will be the last
error
config.json and app.js are in the same folder
inside config.json i've entered a valid secret string and api key but still getting this error message
sorry for my poor English.

@andrewda
Copy link
Owner

Looks like you're not requiring the config file. Add this to the top of your app.js:

const config = require('./config.json');

@mohamadgh
Copy link
Author

i'm using the same source, i don't know why i keep getting errors :D

@ghost
Copy link

ghost commented Jan 28, 2019

I'm having the same issue.

For some reason, it seems to recognise helper.js, no matter with or without the file suffix.
However, it cannot recognise any .json file in my whole project.

json vs js

@andrewda
Copy link
Owner

@Samcool236 where are your JSON files located? Your require statements indicated that your JSON files are in the directory above your code. Could you post a screenshot of your code structure?

@andrewda andrewda closed this as completed Jan 4, 2020
@YorkWong30
Copy link

i have same error.

@JMDServidio
Copy link

in index.blade.php , search windows.config.... and delete this line -> "debug": {{ env('APP_DEBUG') }} :D

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