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

Error when running TypeError: Cannot read properties of undefined (reading 'map') #117

Open
maca opened this issue Oct 21, 2024 · 3 comments

Comments

@maca
Copy link

maca commented Oct 21, 2024

Hi, I am trying to use elm-verify-examples with a package.

I get an error when I run, I've tried node 20 and node 22, both with yarn and npm, local and globa.

I have an M1 macbook and I use nix to manage my dependencies.

/Users/maca/.config/yarn/global/node_modules/elm-verify-examples/bin/cli-helpers.js:44
     .map((d) =>
      ^

TypeError: Cannot read properties of undefined (reading 'map')
   at resolveTests (/Users/maca/.config/yarn/global/node_modules/elm-verify-examples/bin/cli-helpers.js:44:8)
   at Object.loadVerifyExamplesConfig (/Users/maca/.config/yarn/global/node_modules/elm-verify-examples/bin/cli-helpers.js:28:10)
   at Object.init (/Users/maca/.config/yarn/global/node_modules/elm-verify-examples/bin/runner.js:15:38)
   at Object.<anonymous> (/Users/maca/.config/yarn/global/node_modules/elm-verify-examples/bin/cli.js:34:20)
   at Module._compile (node:internal/modules/cjs/loader:1546:14)
   at Module._extensions..js (node:internal/modules/cjs/loader:1691:10)
   at Module.load (node:internal/modules/cjs/loader:1317:32)
   at Module._load (node:internal/modules/cjs/loader:1127:12)
   at TracingChannel.traceSync (node:diagnostics_channel:315:14)
   at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
@gampleman
Copy link
Collaborator

Hi @maca! Can you share a bit more about the package, your configuration, etc.?

@maca
Copy link
Author

maca commented Oct 21, 2024

Hey @gampleman !

Sure, the package is this one: https://github.com/maca/elm-form-toolkit
About the configuration, yarn and node 22 are installed using nix darwin, elm-verify-example is installed globally via yarn, but I've tried with local npm installation too. not sure what else might be relevant.

@lue-bird
Copy link

I wanted to note this before, are the latest commits which seem to fix this released? (I don't think so)

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

3 participants