-
Notifications
You must be signed in to change notification settings - Fork 476
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
import config --> unexpected identifier #10
Comments
i don't know what repository do you mean. upload the files so i can help you. |
learn-fullstack-javascript.zip That's my repository |
i'm not gonna download that. is this the repo which does have the error ? https://github.com/jscomplete/learn-fullstack-javascript/blob/final-code/server.js |
this is not my repo any way i cant help you if you dont give enough information about your error and the files which related to your error |
Of course it's not your repo, as I opened this issue on @samerbuna's repo. |
Maybe you use old version of NodeJS |
you can write it like this |
import config from './config';
^^^^^^
SyntaxError: Unexpected identifier
at Module._compile (internal/modules/cjs/loader.js:723:23)
at loader (/home/francisco/Documents/Programming Courses/learn-fullstack-javascript/node_modules/babel-register/lib/node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (/home/francisco/Documents/Programming Courses/learn-fullstack-javascript/node_modules/babel-register/lib/node.js:154:7)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at Object. (/home/francisco/Documents/Programming Courses/learn-fullstack-javascript/node_modules/babel-cli/lib/_babel-node.js:154:22)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
That's the error message I get. I've cloned the current version with Tag 2.3-end from your GitHub. Can you help me?
The text was updated successfully, but these errors were encountered: