-
Notifications
You must be signed in to change notification settings - Fork 137
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
Error - Module '"jsep"' has no exported member 'Jsep' #237
Comments
Looks like Jsep isn't included in TypeScript, but both of these work: import * as jsep from 'jsep'
const { Jsep } = jsep
console.log(Jsep.parse('1 + 1')) import { Jsep } from 'jsep'
console.log(Jsep.parse('1 + 1')) If you look at the |
#198 proposed some updates to the typings, but the review comments indicate that it broke some of the other usages of jsep with cjs and esm. Would be great if someone wanted to create a PR? |
import * as jsep from 'jsep'
const { Jsep } = jsep
console.log(Jsep.parse('1 + 1')) This works in runtime in browser, but its failing in Jasmine unit test. |
I am getting an error
Module '"jsep"' has no exported member 'Jsep'
while importing theJsep
library by using the below statement -I am using the
1.3.8
version ofJsep
library in a standard Angular 15 application.However, it works fine when I use the default import syntax -
I have also created a minimal reproduction example on Github. Please refer to this link to open it on Stackblitz - https://stackblitz.com/github/HimanshuGoel/issues-reproduction-app/tree/jsep-issue-with-import?file=src%2Fapp%2Fapp.component.ts
The text was updated successfully, but these errors were encountered: