corvid icon indicating copy to clipboard operation
corvid copied to clipboard

Intellisense code completion not working for backend modules

Open gasbi opened this issue 5 years ago • 1 comments

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:

  1. Update to v0.2.1.
  2. Add module in src/backend folder.
  3. Try to import the module in a page code.
  4. 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. image

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. image

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

gasbi avatar Oct 10 '19 09:10 gasbi

Any movement on this?

avrtau avatar Apr 06 '20 17:04 avrtau