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.

node.js browserify > ParseError: Unexpected token

See original GitHub issue

in browserify the js file to bundle below error halt the process which is belong to css.

ow-delete{position:absolute;display:block;width:30px;height:30px;background:#000;color:#fff;z-index:4;border:2px solid #fff;line-height:30px;font-weight:700;text-align:center;border-radius:50%;font-family:monospace;cursor:pointer}.drawflow>.drawflow-delete{margin-left:-15px;margin-top:15px}.parent-node .drawflow-delete{right:-15px;top:-15px} ^ **ParseError: Unexpected token**

the browserify command is: browserify dflow.js -o bundle.js

and the dflow.js file includes: `var Drawflow = require(‘drawflow’) var styleDrawflow = require(‘drawflow/dist/drawflow.min.css’)

var id = document.getElementById(“drawflow”); const editor = new Drawflow(id); editor.start();`

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
hamedf62commented, Aug 10, 2020

Why not download the repository and take the files from the dist folder?

it ran perfectly nice.

actually i decided to use DrawFlow to build Visual Trading Strategy Builder in stock market.

as i already have NON-Visual strategy builder in R. so decided to mix it with Shiny app in R. i hope it would be applicable.

0reactions
jerosolercommented, Aug 10, 2020

Good luck with your project! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Browserify Error: Parsing file, Unexpected token - Stack Overflow
I have installed npm install reactify --save . Then I ran % browserify -t reactify build/widget.js Which gave the -bash: fg: %: no...
Read more >
ParseError: Unexpected token: <template> - Laracasts
I can only get npm 3.3.12 with the latest node version from nodejs.org.
Read more >
Browserify Express App Error: Parsing file Unexpected token ...
Coding example for the question Browserify Express App Error: Parsing file Unexpected token-node.js.
Read more >
Javascript – Browserify Error: Parsing file, Unexpected token ...
Javascript – Browserify Error: Parsing file, Unexpected token. browserifyjavascriptnode.jsnpmreactjs. I am trying to use this npm module with browserify.
Read more >
uncaught syntaxerror: export 'e' is not defined in module - You.com ...
Feed.js:94 undefined "parsererror" "SyntaxError: Unexpected token < in JSON at ... Browserify - ParseError: 'import' and 'export' may appear only with ...
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