-
Notifications
You must be signed in to change notification settings - Fork 30
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
"Is not a module" error caused by Typescript #20
Comments
Just ran into this: |
Having the same issue as @williamkunz when trying to install Edit: oh man. Last commit was 2016. Well maybe time to find another solution... |
Adding jsurl.d.ts under the src/types folder with the following declaration solves the problem for me declare module "jsurl" {
type Nullable<T> = T | null | undefined;
export function stringify(input: any): string;
export function parse(input?: Nullable<string>): Nullable<any>;
} |
Churned a couple hours on this. How can we get the |
@Psiphonc No
|
still an issue in "@types/jsurl": "^1.2.30", |
I installed this library with Yarn 2 PnP and it gave me an error when i try to import:
import * as JSURL from 'jsurl'
Error:
File 'PROJECT_PATH/.yarn/cache/@types-jsurl-npm-1.2.30-5763667407-c51ff0d159.zip/node_modules/@types/jsurl/index.d.ts' is not a module.ts(2306)
The text was updated successfully, but these errors were encountered: