Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Cannot use with Angular, but can with Vue #274

Open
the-fool opened this issue May 5, 2021 · 0 comments
Open

Cannot use with Angular, but can with Vue #274

the-fool opened this issue May 5, 2021 · 0 comments

Comments

@the-fool
Copy link

the-fool commented May 5, 2021

It's odd - when I

import Maker from "@makerdao/dai"

in Vue, everything works fine in the browser. When I do so with Angular 11, I get a whole host of unresolved module errors. The list includes crypto, os, stream, and so forth.

Error: ./node_modules/web3-eth-accounts/src/index.js
Module not found: Error: Can't resolve 'crypto' in . . . 

Is the dai.js module not packaged in a way that Angular's compiler can read it?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant