surrealdb.wasm icon indicating copy to clipboard operation
surrealdb.wasm copied to clipboard

Package imports aren't hinted properly in VSCode

Open itsezc opened this issue 1 year ago • 1 comments

I'm trying to import the WS module, however the imports are listed properly not sure if this is a package issue with the files it exports, tsconfig or something on my end

image

But I expect it to show: "/ws" and "/http" and not dist and lib

on version 0.6.0

itsezc avatar Jun 21 '23 10:06 itsezc

I get this in WebStorm, and also it seems to use /dist by default and complains if I try to explicitly reference the files in /lib

Module not found: Error: Package path ./lib/full.js is not exported from 
package ***/node_modules/surrealdb.wasm (see exports 
field in ***/node_modules/surrealdb.wasm/package.json)

christophermiles avatar Jul 14 '23 07:07 christophermiles