Skip to content

Upgrade from 5.0.6 to 5.0.7 broke my build #736

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

Closed
faljse opened this issue Mar 21, 2025 · 3 comments
Closed

Upgrade from 5.0.6 to 5.0.7 broke my build #736

faljse opened this issue Mar 21, 2025 · 3 comments

Comments

@faljse
Copy link

faljse commented Mar 21, 2025

After upgrading from 5.06 to [5.0.7 ... 5.0.9] i cant use "X2jOptions" anymore:

import {type X2jOptions, XMLParser} from 'fast-xml-parser';
error TS2305: Module '"fast-xml-parser"' has no exported member 'X2jOptions'.

@amitguptagwl
Copy link
Member

We added typings for cjs in v5.0.7 commit
But the typings for EMS module are still pointing to the old file. Unfortunately, I would not be able to check this before 4th Apr.

@amitguptagwl
Copy link
Member

I tried this in my local. This is working fine. Can you please create a sample project or share the code that can help to debug?

import {
  XMLParser,
  XMLBuilder,
  XMLValidator,
  type X2jOptions,
  type XmlBuilderOptions,
  type validationOptions,
} from 'fast-xml-parser';

@amitguptagwl
Copy link
Member

Please reopen the issue if you feel exist.

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