corvid
corvid copied to clipboard
Intellisense code completion not working for backend modules
Describe the bug
The intelligent code-completion introduced in v0.2.0 is not working when trying to use the modules in backend
folder. It works however with public
and Corvid API.
Note that although the Intellisense is not working for the backend module, it works perfectly on the site. So, it is being correctly loaded and useful on the code, but there's no autocompletions as I have with public modules.
To Reproduce Steps to reproduce the behavior:
- Update to v0.2.1.
- Add module in
src/backend
folder. - Try to import the module in a page code.
- See error
Expected behavior
I would expect the IntelliSense to work as well for backend
modules, as it works for those in src/public
folder.
Screenshots
Attached an screenshot showing how the public
folder appears as suggestion when importing a module, but not the backend
folder. Also, it can be seen the error shown by VSCode when imported from backend
.
Another error appears on the file src/backend/tsconfig.json
, which seems to be related, and it does not appear on the public folder. See screenshot with the error.
Desktop (please complete the following information):
- OS: macOS Mojave 10.14.6
- corvid-cli: v0.2.1
- corvid-types: v0.1.86
- vscode: 1.39.0
Additional context The IDE used is VSCode
Any movement on this?