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

An unhandled exception occurred: ENOENT: no such file or directory, scandir #264

Open
BartolomeoItaliano opened this issue Dec 22, 2024 · 0 comments

Comments

@BartolomeoItaliano
Copy link

BartolomeoItaliano commented Dec 22, 2024

This example block of code fails whenever added to angular project:

import {Blockfrost, Lucid} from "lucid-cardano";

    let a = await Lucid.new(
      new Blockfrost(
        "ApiAddress",
        "projectId",
      ),
      "network"
    );

I enabled custom webpack builder in angular.json:

"builder": "@angular-builders/custom-webpack:browser",

and setup my "webpack.config.js" file like this:

module.exports = {
  experiments: {
    topLevelAwait: true,
    asyncWebAssembly: true,
    layers: true
  }
};

But still I receive this error:

An unhandled exception occurred: ENOENT: no such file or directory, scandir ''

I did it all on clear angular project. Please help.

@BartolomeoItaliano BartolomeoItaliano changed the title Add support for angular projects, remove top level awaits An unhandled exception occurred: ENOENT: no such file or directory, scandir Dec 23, 2024
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