Skip to content

doesn't work with skypack #33

Open
@mreinstein

Description

@mreinstein

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions