8000 CAC doesn't works with Deno · Issue #58 · cacjs/cac · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content < 8000 link crossorigin="anonymous" media="all" rel="stylesheet" href="https://github.githubassets.com/assets/keyboard-shortcuts-dialog.f8fba3bd67fe74f9227b.module.css" />
CAC doesn't works with Deno #58
Closed
Closed
@rokoucha

Description

@rokoucha

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/cac@6.5.3/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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0