Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong path for long.js.map ? #149

Open
djipco opened this issue Jun 14, 2019 · 3 comments
Open

Wrong path for long.js.map ? #149

djipco opened this issue Jun 14, 2019 · 3 comments

Comments

@djipco
Copy link
Contributor

djipco commented Jun 14, 2019

If I install osc.js via NPM and link it in the <head> of the HTML page, I get an error saying that this file cannot be found: node_modules/osc/dist/long.js.map

I noticed this file is present in the bower_components folder. I'm not sure why it's looking for it in the main dist folder. Ideas?

@colinbdclark
Copy link
Owner

Which file are you linking in your page?

@djipco
Copy link
Contributor Author

djipco commented Jun 14, 2019

<script src="node_modules/osc/dist/osc-browser.js"></script>

@colinbdclark
Copy link
Owner

It sounds like the warning you're seeing is related to the debugger trying to load a source map for the Long dependency, which is included in the concatenated osc.js build you're using. It's not actually an error, just your debugger trying to be especially helpful and failing to find the right file.

The root of the issue is that it looks like Long is being included in its minified form, even in the the non-minified build of osc.js. I'll file a ticket about this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants