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

doesn't work with skypack #33

Open
mreinstein opened this issue Nov 24, 2020 · 2 comments
Open

doesn't work with skypack #33

mreinstein opened this issue Nov 24, 2020 · 2 comments

Comments

@mreinstein
Copy link

my code:

import clamp from 'https://cdn.skypack.dev/clamp'

console.log('clamped:', clamp(100, 0, 90))

here is what I see when I attempt to build via rollup:

> rollup -c rollup.config.js --format es -o bundle.js index.js


index.js → bundle.js...
Downloading https://cdn.skypack.dev/clamp...
Downloading https://unpkg.com//-/[email protected]/dist=es2020/clamp.js...
Failed to download https://unpkg.com//-/[email protected]/dist=es2020/clamp.js...
[!] (plugin http) Error: Could not load https://unpkg.com//-/[email protected]/dist=es2020/clamp.js (imported by https://cdn.skypack.dev/clamp): Not Found
Error: Could not load https://unpkg.com//-/[email protected]/dist=es2020/clamp.js (imported by https://cdn.skypack.dev/clamp): Not Found
    at module.exports (C:\Users\Mike\wwwroot\test-u\node_modules\import-http\lib\fetch.js:8:11)
    at process._tickCallback (internal/process/next_tick.js:68:7)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build: `rollup -c rollup.config.js --format es -o bundle.js index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Mike\AppData\Roaming\npm-cache\_logs\2020-11-24T18_05_27_724Z-debug.log
@mreinstein
Copy link
Author

@egoist would you be open to a PR that fixes this?

@cbbfcd
Copy link
Contributor

cbbfcd commented Feb 25, 2021

problem is in resolveURL, i will open to a PR for it.

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