Skip to content
This repository has been archived by the owner on Dec 15, 2023. It is now read-only.

SyntaxError: Unexpected token import #81

Open
oguennec opened this issue Sep 7, 2017 · 1 comment
Open

SyntaxError: Unexpected token import #81

oguennec opened this issue Sep 7, 2017 · 1 comment

Comments

@oguennec
Copy link

oguennec commented Sep 7, 2017

Error

dts-gen -m react-native-fetch-mock

Unexpected crash! Please log a bug with the commandline you specified.
/Users/guenneco/react-native/bg-mobile-nga/node_modules/react-native-fetch-mock/src/index.js:1
(function (exports, require, module, __filename, __dirname) { import { parseRequest, matchUrl } from './util';
^^^^^^

SyntaxError: Unexpected token import
at createScript (vm.js:74:10)
at Object.runInThisContext (vm.js:116:10)
at Module._compile (module.js:537:28)
at Object.Module._extensions..js (module.js:584:10)
at Module.load (module.js:507:32)
at tryModuleLoad (module.js:470:12)
at Function.Module._load (module.js:462:3)
at Module.require (module.js:517:17)
at require (internal/module.js:11:18)
at Object. (/Users/guenneco/react-native/bg-mobile-nga/node_modules/react-native-fetch-mock/index.js:1:80)

Environment

  • MacOS: 10.12.6
  • node: v8.3.0
  • npm: 5.3.0
  • dts-gen: 0.5.6
  • react-native-fetch-mock: 0.2.0
@brunolemos
Copy link

#42

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants