This repository has been archived by the owner on Jan 1, 2025. It is now read-only.
Module parse failed: Unexpected token (140:4) #1172
Unanswered
kevinli-webbertech
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Is this perhaps a JS target version issue? Can you transpile it? See #1073 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a reactjs project from kickstarter,
use atom in my project the simplest one, start the project and get the following,
./node_modules/recoil/es/recoil.js
Module parse failed: Unexpected token (140:4)
You may need an appropriate loader to handle this file type.
| state: 'hasValue',
| contents: value,
| ...loadableAccessors,
|
| getValue() {
open recoil.js at 140, it does not like spread attribute,
function loadableWithValue(value) {
// Build objects this way since Flow doesn't support disjoint unions for class properties
return Object.freeze({
state: 'hasValue',
contents: value,
...loadableAccessors,
any idea to fix it?
Beta Was this translation helpful? Give feedback.
All reactions