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

CAC doesn't works with Deno #58

Closed
1 of 3 tasks
rokoucha opened this issue Dec 13, 2019 · 1 comment
Closed
1 of 3 tasks

CAC doesn't works with Deno #58

rokoucha opened this issue Dec 13, 2019 · 1 comment
Labels

Comments

@rokoucha
Copy link

rokoucha commented Dec 13, 2019

Issue Type

  • Bug Report
  • Feature Request
  • Other

Expected

Works CAC with Deno.

Actual

Deno throws error.

error: Uncaught ImportPrefixMissing: relative import path "events" not prefixed with / or ./ or ../ Imported from "https://unpkg.com/[email protected]/mod.js"
► $deno$/dispatch_json.ts:40:11
    at DenoError ($deno$/errors.ts:20:5)
    at unwrapResponse ($deno$/dispatch_json.ts:40:11)
    at sendAsync ($deno$/dispatch_json.ts:91:10)

Possible Solutions

Deno does not have 'events' module but cac depends.
Also Deno cannnot import https://www.npmjs.com/package/events with such code.

cac/mod.js

Line 1 in cb367c9

import { EventEmitter } from 'events';

Info

  • CAC version: 6.5.3
  • Reproduction code:
import { cac } from 'https://unpkg.com/cac/mod.js'
@egoist egoist closed this as completed in aa8f868 Mar 6, 2020
@egoist
Copy link
Collaborator

egoist commented Mar 6, 2020

🎉 This issue has been resolved in version 6.5.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

@egoist egoist added the released label Mar 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants