LInQer icon indicating copy to clipboard operation
LInQer copied to clipboard

Cant import @siderite/linqer as its not a module

Open Snazzie opened this issue 4 years ago • 4 comments

import Linqer from '@siderite/linqer' causes the following error to show.

File 'd:/Repo/SnapRepo/Server-React/ClientApp/node_modules/@siderite/linqer/LInQer.all.d.ts' is not a module.ts(2306)

Can you add support for import please :)

Snazzie avatar Mar 06 '20 18:03 Snazzie

Thanks for the report. I will try to make this work for both TS and node. I fix one and I break the other :(

Siderite avatar Mar 06 '20 22:03 Siderite

I gave up on making import work. Just import @types/node and use require in the code. I appreciate any advice or help, but I think I will only make this work for all Node.js and TypeScript in version 2.0.

Siderite avatar Mar 08 '20 16:03 Siderite

Will try @types/node, I wont be of much help unfortunately :')

Snazzie avatar Mar 09 '20 13:03 Snazzie

The problem for me is that I did this in Javascript, moved to TypeScript for the type safety, but I am not actually using it anywhere except as a .js file in web apps that I only make for myself. If you give me the exact way you are using it, I can help you on a case to case basis.

Siderite avatar Mar 09 '20 13:03 Siderite