Sytax error on 0.1.15 apollo-boost
See original GitHub issueIntended outcome:
All run nice on 0.1.15 version apollo-boost
Actual outcome:
/usr/src/app/node_modules/apollo-boost/lib/index.js:25 export * from ‘apollo-client’; ^^^^^^ SyntaxError: Unexpected token export at new Script (vm.js:73:7) at createScript (vm.js:245:10) at Object.runInThisContext (vm.js:297:10) at Module._compile (internal/modules/cjs/loader.js:657:28) at Object.Module._extensions…js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17) at require (internal/modules/cjs/helpers.js:20:18)
Code in index.js at lines 26-35 not transpiled
How to reproduce the issue:
Just use 0.1.15
Versions
0.1.15
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@eviL-ivan Can you provide an example of how you’re using
apollo-boost
?index.js
is now intentionally not transpiled, since it’s no longer the main package entry point:package.json
By default your application should be using the
./lib/index.umd.js
entry point, which is es5 compatible../lib/indexjs
includes imports/exports to facilitate tree shaking approaches.Closing as no reproduction was provided in one week. Feel free to reopen if you have a minimal reproduction.