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

it canot be imported using require #70

Open
doti19 opened this issue Feb 2, 2024 · 1 comment
Open

it canot be imported using require #70

doti19 opened this issue Feb 2, 2024 · 1 comment

Comments

@doti19
Copy link

doti19 commented Feb 2, 2024

No description provided.

@dpilafian
Copy link
Member

Version 3.0.0 of pretty-print-json drops support for the older CommonJS require() imports. If you need CommonJS support, use the UMD file from version 2.1.2. Version 2.1.2 and version 3.0.0 have exactly the same features.

Depending on your situation, you may want to consider upgrading to ES Modules. ES Modules were introduced with ES6 in 2015. It's been a painfully slow transition, but ES Modules are clearly the future.

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