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

Failed to import - @project-serum/anchor #195

Closed
ebramanti opened this issue Oct 20, 2021 · 0 comments
Closed

Failed to import - @project-serum/anchor #195

ebramanti opened this issue Oct 20, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ebramanti
Copy link

Failing module

import { Program, Provider } from "https://esm.sh/@project-serum/anchor@0.17.0?dev&no-check";

Error message

After running deno run I get this:

error: Uncaught SyntaxError: Identifier '__process$' has already been declared
import __process$ from "/v54/process@0.11.10/deno/browser.development.js";
~~~~~~~~~~~~~~~~~
    at <anonymous> (https://cdn.esm.sh/v54/@project-serum/anchor@0.17.0/deno/anchor.development.js:8:1)

Additional info

Looking at source, setting process.env.NODE_ENV at the top of the main file causes a duplicate import with the process dependency pulled in. Is it possible to specify an alias for the conflicting import?

  • esm.sh version: v54
  • Deno version: 1.14.3
@ebramanti ebramanti added the bug Something isn't working label Oct 20, 2021
@ije ije closed this as completed in fa72e93 Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant