You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to get around the following problem. With "moduleResolution": "bundler" set in my tsconfig.json and importing elevio as described in the README, I'm getting these errors:
import Elevio from 'elevio/lib/client';
TS2307: Cannot find module 'elevio/lib/client' or its corresponding type declarations.
(and this also is marked as an Error in the IDE + typehints are turned off)
import { client as Elevio } from 'elevio';
Module build failed: Module not found:
"./node_modules/elevio/esm/react.js" contains a reference to the file "react".
This file can not be found, please check it for typos or update it if the file got moved.
(I'm not using react and trying to import elevio inside of a normal .ts file)
It does work when I set "moduleResolution": "node", but this is not recommended by the default svelte tsconfig. Is there any way to enable "moduleResolution": "bundler" support?
Currently on v1.3.8
The text was updated successfully, but these errors were encountered:
Hi,
I'm trying to get around the following problem. With
"moduleResolution": "bundler"
set in mytsconfig.json
and importing elevio as described in the README, I'm getting these errors:(and this also is marked as an Error in the IDE + typehints are turned off)
(I'm not using react and trying to import elevio inside of a normal .ts file)
It does work when I set
"moduleResolution": "node",
but this is not recommended by the defaultsvelte
tsconfig. Is there any way to enable"moduleResolution": "bundler"
support?Currently on v1.3.8
The text was updated successfully, but these errors were encountered: