Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant import @siderite/linqer as its not a module #20

Open
Snazzie opened this issue Mar 6, 2020 · 4 comments
Open

Cant import @siderite/linqer as its not a module #20

Snazzie opened this issue Mar 6, 2020 · 4 comments

Comments

@Snazzie
Copy link

Snazzie commented Mar 6, 2020

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 :)

@Siderite Siderite changed the title Cant import @siderrite/linqer as its not a module Cant import @siderite/linqer as its not a module Mar 6, 2020
@Siderite
Copy link
Owner

Siderite commented Mar 6, 2020

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
Copy link
Owner

Siderite commented Mar 8, 2020

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.

@Snazzie
Copy link
Author

Snazzie commented Mar 9, 2020

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

@Siderite
Copy link
Owner

Siderite commented Mar 9, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants