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

Uncaught SyntaxError: Unexpected token . #161

Closed
Rafi993 opened this issue Dec 30, 2018 · 3 comments
Closed

Uncaught SyntaxError: Unexpected token . #161

Rafi993 opened this issue Dec 30, 2018 · 3 comments
Assignees
Labels
duplicate This issue or pull request already exists question Further information is requested

Comments

@Rafi993
Copy link

Rafi993 commented Dec 30, 2018

I am getting the following error when I did yarn add and they just imported 'react-calendar'


vm.js:74 Uncaught SyntaxError: Unexpected token .
    at new Script (vm.js:74)
    at createScript (vm.js:246)
    at Object.runInThisContext (vm.js:298)
    at Module._compile (internal/modules/cjs/loader.js:678)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:722)
    at Module.load (internal/modules/cjs/loader.js:620)
    at tryModuleLoad (internal/modules/cjs/loader.js:559)
    at Function.Module._load (internal/modules/cjs/loader.js:551)
    at Module.require (internal/modules/cjs/loader.js:658)
    at require (internal/modules/cjs/helpers.js:20)

node: v10.15.0
os: Debian (Linux)
yarn: 1.12.3
react-calendar version: "^2.17.5"

@Rafi993
Copy link
Author

Rafi993 commented Dec 30, 2018

and on a side note it would be better if you had some template for users creating issue

@wojtekmaj
Copy link
Owner

Hi, thanks for reporting. This is due to a CSS file being imported (if you don't opt-out). You should configure your Webpack properly to load CSS files, or opt-out from loading the default styles by using entry.nostyle (more in README).

@wojtekmaj
Copy link
Owner

Duplicate of #108

@wojtekmaj wojtekmaj marked this as a duplicate of #108 Dec 31, 2018
@wojtekmaj wojtekmaj self-assigned this Dec 31, 2018
@wojtekmaj wojtekmaj added duplicate This issue or pull request already exists question Further information is requested labels Dec 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants