question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sytax error on 0.1.15 apollo-boost

See original GitHub issue

Intended 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

image

How to reproduce the issue:

Just use 0.1.15

Versions

0.1.15

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
hwillsoncommented, Aug 26, 2018

@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

...
  "main": "./lib/index.umd.js",
  "module": "./lib/index.js",
  "jsnext:main": "./lib/index.js",
...

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.

0reactions
danilobuergercommented, Jan 29, 2019

Closing as no reproduction was provided in one week. Feel free to reopen if you have a minimal reproduction.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling operation errors - Apollo GraphQL Docs
These are errors related to the server-side execution of a GraphQL operation. They include: Syntax errors (e.g., a query was malformed); Validation errors...
Read more >
@apollo/client | Yarn - Package Manager
Apollo Client is a fully-featured caching GraphQL client with integrations for React, Angular, and more. It allows you to easily build UI components...
Read more >
npmsearchfullcat_npm143.txt - GitHub
2014-01-13 0.1.15 adt Algebraic data types for Javascript =natefaubion ... bangumi banish-jasmine-iit-ddescribe Raise an error if the Jasmine tests contain ...
Read more >
Giving React + GraphQL a Lift with Apollo-Boost | by Jeff Lowery
With the client set up, next plug in an ApolloProvider component into the application: (I've cleaned up the syntax a bit from the...
Read more >
all documented artifacts — cljdoc
apollo.client/apollo.client 0.1.0-SNAPSHOT. more versions ... audiogum/clj-qobuz 0.1.15. more versions ... clojure-ebnf-grammarGroup ID ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found