Publish autobahn-js-built to npm
See original GitHub issueI 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:
- Created 6 years ago
- Reactions:2
- Comments:13 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@oberstet Do you have any info on this topic ? Thanks for your time.
autobahn-js-built v0.11.2 doesn’t contain ES6: