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

defaultProvider in nodemodules mode, install ua-parser-js package will get stuck #393

Open
zengtiansheng opened this issue Dec 3, 2024 · 0 comments

Comments

@zengtiansheng
Copy link

defaultProvider in nodemodules mode, install ua-parser-js package will get stuck

import { Generator } from '@jspm/generator';

const generator = new Generator({
    mapUrl: import.meta.url,
    defaultProvider: 'nodemodules',
    env: ['production', 'module'],
});

await generator.install('ua-parser-js');

const map = generator.getMap()
console.log(JSON.stringify(map, null, 2));

After debugging, I found that the entry file corresponding to the ua-parser-js package had comment text, which caused the installation to fail.

image

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

1 participant