TypeError: vertojs__WEBPACK_IMPORTED_MODULE_1__.Verto is not a constructor #24
-
If I use library from src everything is working, but if I use it from dist, I get this error... Can you please advise? |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 4 replies
-
Can you provide me with a code you imported a library at? |
Beta Was this translation helpful? Give feedback.
-
I installed library via npm. This is how I import it in code: Commented line is working, regular one doesn't. And it fails when initializing Verto: |
Beta Was this translation helpful? Give feedback.
-
Well... Do you have typescript support on the project? The default package entry point assumes you have. I will review the library code and defaults next days to make it more compatible to default user expectations. |
Beta Was this translation helpful? Give feedback.
-
Thank you for being active on this project. I am developing app in Angular, so typescript is supported. |
Beta Was this translation helpful? Give feedback.
-
I uninstalled npm and reinstall it. Now I do not have logout() and isLogged() functions in src/index.ts. I tried to download npm and open compressed file and this piece of code has gone. Something changed in npm? |
Beta Was this translation helpful? Give feedback.
-
Nothing changed when you asked. |
Beta Was this translation helpful? Give feedback.
-
It does work now 👍 Thank you |
Beta Was this translation helpful? Give feedback.
-
Hi, @gregoriusus can you please share the version of npm and node you are currently using? |
Beta Was this translation helpful? Give feedback.
-
Thank you @gregoriusus. I am using this library and getting the same error |
Beta Was this translation helpful? Give feedback.
-
Try import with brackets
…On Mon, 14 Nov 2022 at 06:59, AhreemaSheikh ***@***.***> wrote:
Thank you so much for taking out time to help me.
I don't really understand it.
I have done the same as you said, I get the following error.
[image: vertojs]
<https://user-images.githubusercontent.com/114995340/201585817-f5876e5b-7066-4ec3-a446-9b59e5d1daab.png>
[image: node]
<https://user-images.githubusercontent.com/114995340/201585857-08a34b5e-ca42-44a8-b4ce-d4a63468559c.png>
—
Reply to this email directly, view it on GitHub
<#24 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABAR5XYABZMYMIIHDUCYKIDWIHIMXANCNFSM5LGBTBPA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Gregor Nanger
*CTO*
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
• www.infomedia.si
|
Beta Was this translation helpful? Give feedback.
Nothing changed when you asked.
I have just rebuilt the library, now you should be able to use it as described
import { Verto } from 'vertojs'