oatmealgrips
oatmealgrips2w ago

vscode npm import not recognizing all package contents

Deno itself seems to be importing the package and its contents just fine, but vscode only recognizes certain exports. In this case, the tensorflow function "tf.sequential" works when the program is run, but vscode is not recognizing it. Only two properties are recognized: tf.data and tf.version
No description
No description
4 Replies
nayeemrmn
nayeemrmn2w ago
Try on deno upgrade --canary, the issue may be fixed already. If not, please open an issue with a reproduction
oatmealgrips
oatmealgrips2w ago
i think the issue is with the vscode extension, not deno itself. I tried deno upgrade --canary, and the problem persisted. I'll open an issue
nayeemrmn
nayeemrmn2w ago
The language server program the extension uses is located in the Deno binary. My testing shows that the issue is fixed in canary, try restarting the window after upgrading.
oatmealgrips
oatmealgrips2w ago
you're right, i had to restart everything, now it works