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.

Publish autobahn-js-built to npm

See original GitHub issue

I get this error when creating production build.

Failed to compile.

static/js/main.955798b7.js from UglifyJs
Unexpected token: name (Simple) [./~/cbor/lib/simple.js:9,0][static/js/main.955798b7.js:10295,6]

error Command failed with exit code 1.

Content at static/js/main.955798b7.js:10295,6

class Simple {
      ^

Instructions to reproduce:

create-react-app test
cd test
yarn add autobahn

# In src/App.js, append the following line: 
import autobahn from 'autobahn';

yarn run build

I am very new to this. Here are my thoughts: I think the discussion is https://github.com/facebookincubator/create-react-app/issues/984#issuecomment-257105773 is relevant here. It mentions that ES6 syntax in dependencies is not supported by create-react-app. If that’s the case, can we transpile before publishing the autobahn npm module?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
adrlencommented, Jun 16, 2017

@oberstet Do you have any info on this topic ? Thanks for your time.

1reaction
karsercommented, Sep 13, 2017

autobahn-js-built v0.11.2 doesn’t contain ES6:

npm install --save autobahn@git://github.com/crossbario/autobahn-js-built.git#v0.11.2
npm install --save-dev @types/autobahn
Read more comments on GitHub >

github_iconTop Results From Across the Web

autobahn-js/building.md at master - GitHub
The following describes how to build and publish Autobahn|JS for browser and Node. Build environment (browser build). Install Node.js. sudo apt-get ...
Read more >
@errsole/autobahn - npm
Autobahn |JS is a subproject of the Autobahn project and provides an open-source implementation of the Web Application Messaging Protocol V2 in ...
Read more >
autobahn - npm
An implementation of The Web Application Messaging Protocol (WAMP).. Latest version: 22.11.1, last published: a month ago.
Read more >
autobahn-browser - npm
[BROWSER BUILD] An implementation of The Web Application Messaging Protocol (WAMP).. Latest version: 22.11.1, last published: a month ago.
Read more >
@webevt/autobahnjs - npm
AutobahnJS is a JavaScript client library that implements The WebSocket Application Messaging Protocol (WAMP). Latest version: 0.8.0, last published: 3 ...
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