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

fs.readdir is not a function #198

Open
weldonla opened this issue Jan 13, 2022 · 0 comments
Open

fs.readdir is not a function #198

weldonla opened this issue Jan 13, 2022 · 0 comments

Comments

@weldonla
Copy link

I'm submitting a bug report

  • Library Version:
    0.9.25/0.10.0 both get same error

Please tell us about your environment:

  • Operating System:
    Windows 10

  • Node Version:
    14.17.1

  • NPM Version:
    7.22.0

  • Language:
    TypeScript 4.2.4

Current behavior:
I've installed the aurelia-template-lint, and copied the code in the readme and added it to main.ts. There were a lot of 'resolve' issues that I fixed in my webpack.config.js by forcing certain packages to resolve to a specific installed version of it. fs was one of the packages that I needed to resolve in my webpack file. I've tried resolving it to many different locations. The last resolve I tried was to resolve to the glob v7.2.0 node module since that is what aurelia-template-lint is using fs for, given the stack trace. I'm still stuck on this issue where fs.readdir is not a function (see below).

image

Below is a screenshot of all the additions I had to make to fix all of the resolve errors.

image

the 'child_process' package I could only get to resolve with the thing at the top, child_process: 'empty'. I feel like that might be causing it, but I wasn't able to get it to resolve by installing it and resolving it to it's installed location in node_modules.

I apologize if this should actually be on stack overflow. I'm not sure if this is actually a bug or if I'm just setting it up incorrectly.

@weldonla weldonla reopened this Jan 13, 2022
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