-
Notifications
You must be signed in to change notification settings - Fork 3
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
[BUG] Setup doesn't work #28
Comments
Same here. In agent.yml if I update |
If you get errors like |
Still getting same errors at the same point, is there anything from veramo team on this? |
Could you describe in detail what you are doing and what error message you are getting? |
Then I get this error: Error creating cors['undefined']: required is not a constructor. While creating object from pointer: /server If I rename server: I dont get the cors['undefined'] error, but I still get other errors about .js imports I am sure if you follow my steps in a brand new repo you will run into the same bug as me |
Can you post the error message for the js import errors? |
Error creating /Users/jaycool/code/veramo/veramo-plugin/build['MyKeyManagementSystem']: Directory import '/Users/jaycool/code/veramo/veramo-plugin/build' is not supported resolving ES modules imported from /Users/jaycool/code/veramo/veramo-plugin/node_modules/@veramo/cli/build/lib/objectCreator.js |
Can you share what version of node you're using? I just did a fresh clone and was able to generate schema on node v20.14.0 |
I am running node v20.3.1
Where I am getting an error is at |
I just bumped up to v20.14.0 and still same errors when running If I dont update the require cors line in the agent.yml file I get When I do update the file withe the cors query params I get this error: |
Can you post the content of your agent.yml? |
|
Shouldn't be different from what I cloned from repo, besides cars -> cors?t=function#default |
If you change the line |
I get the equivalent when trying Im a bit confused though - are you able to clone fresh, and run e2e as per the docs successfully? |
So the original error seems to be fixed with the change. You just need to do the same thing again for
After changing all the imports as above, yes, I was able to run it successfully |
Are you a contributor to the project? would be useful if the agent.yml was correct as these bugs are not very intuitive to fix |
I can raise a PR as well |
In your example you did |
This should be correct for the MyKeyManagementSystem: |
Lol good spot on the .ts haha that was just muscle memory on my side |
Cool that fixed it for me. Thanks for your help |
@nickreynolds we can close this now |
Prerequisites
Please answer the following questions for yourself before submitting an issue.
YOU MAY DELETE THE PREREQUISITES SECTION if you're sure you checked all the boxes.
Current Behavior
What is the current behavior?
Expected Behavior
Hey guys! Please follow your own setup steps for this minimalistic server and see that it doesn't work using node v18.15.0. Expected:
yarn test
fails all test scenariosyarn start
fails withError creating cors['undefined']: required is not a constructor. While creating object from pointer: /server
Please include any relevant log snippets or files here.
Create a GIST which is a paste of your full or sanitized logs, and link them here.
Please do NOT paste your full logs here, as it will make this issue very long and hard to read!
Alternatives you considered
Please provide details about an environment where this bug does not occur.
The text was updated successfully, but these errors were encountered: