plotly / dash-component-boilerplate

Get started creating your own Dash components here.
266 stars 182 forks source link

Uncaught SyntaxError: Unexpected token ':' #95

Closed westonkjones closed 4 years ago

westonkjones commented 4 years ago

Sorry if this has been posted before, or is a dumb question! I did a search for this issue, but came up empty.

I am trying to just write a dash wrapper for an existing react component. It mostly works as expected, however some of the functionality is silently failing. Opening the console I am greeted with the following error

image

The component works as expected when running a react version using npm run start

eric-burel commented 4 years ago

Same here, the minimap does not seem to have a valid format. It seems to happen when a map file is imported by mistake. https://github.com/Microsoft/TypeScript/issues/5649

It is indeed add to the page footer.

westonkjones commented 4 years ago

Same here, the minimap does not seem to have a valid format. It seems to happen when a map file is imported by mistake. microsoft/TypeScript#5649

It is indeed add to the page footer.

Oh, great find! I didn't even notice before that it was the source map. As a temporary fix I was able to disable remove it from the generated _js_dist in the __init__.py of the build. This actually didn't solve my original issue, unfortunately