wasp icon indicating copy to clipboard operation
wasp copied to clipboard

Adjust the way LSP finds user's files

Open infomiho opened this issue 1 year ago • 0 comments

After we introduced bundling of our server code (https://github.com/wasp-lang/wasp/pull/1714), now we have an issue with a different behaviour in our LSP and what our code will tolerate.

Bundler will tolerate "folder imports" while LSP resolves modules differently and won't tolerate "folder imports".

Screenshot 2024-02-05 at 17 06 53
LSP doesn't recognise imports from folders, BUT this will run fine though
Screenshot 2024-02-05 at 17 08 04
Adding index helps (this will also run fine)

infomiho avatar Feb 06 '24 12:02 infomiho