-
Notifications
You must be signed in to change notification settings - Fork 48
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
The extensions.js
file throws an error when i try to run an extension
#77
Comments
soul/core/src/extensions.js
file throws an error when i try to run an extensionextensions.js
file throws an error when i try to run an extension
Hi @AbegaM, |
Just updated the https://github.com/thevahidal/soul/blob/main/docs/extensions-examples.md to mention the importance of absolute paths for the |
@thevahidal Thank you so much for your answer. I just changed it to an absolute path and everything is working fine now. |
Hello @thevahidal - is there a strong technical reason why the path has to be absolute? It can make deployment of a Soul-based solution more challenging - including the fact that extensions will not work "out of the box" on a clone of the repo (since we can't forecast the directory structure above the repo). |
Hey @IanMayo, |
Describe the bug
I am trying to run a soul extension inside the
soul/core
folder but the code is throwing an error in the/core/src/extensions.js
file, i have followed the instructions in here to run the extension.To Reproduce
Go to the
soul/core
folder and create a folder named_extensions
Create a file named
api.js
inside the_extensions
folder and copy and paste the sample extension code from hereAdd the path of your extension in your
.env
fileRun the project
Expected behavior
When i run the project, it throws an error in this line, it can't
require
the_extensions/api.js
file,Screenshots
Additional context
The code works fine when i modify the path of the extension like this
The text was updated successfully, but these errors were encountered: