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

Importing npm modules as browserified js files works from an absolute path but not from a relative path #404

Open
phoeinx opened this issue Mar 10, 2020 · 0 comments

Comments

@phoeinx
Copy link

phoeinx commented Mar 10, 2020

`<script>

import mp from "./npm-modules/npm-mouse-position.js"
import mp2 from "https://lively-kernel.org/lively4/BP2019RH1/scratch/individualsAsPoints/regl/npm-modules/npm-mouse-position.js"

"mp:" + mp + " mp3: " + mp2
</script>`

Gives this result when evaluated on a folder with an npm-modules subfolder which holds the nom-mouse-position.js file which can be found at https://lively-kernel.org/lively4/BP2019RH1/scratch/individualsAsPoints/regl/npm-modules/npm-mouse-position.js.

image

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

No branches or pull requests

1 participant