Skip to content
New issue

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

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

Already on GitHub? # to your account

Encountered error when formatting types with Prettier t [Error]: Couldn't resolve parser "typescript" #126

Open
iccicci opened this issue Nov 4, 2024 · 0 comments

Comments

@iccicci
Copy link
Contributor

iccicci commented Nov 4, 2024

I tried again to update to peggy v4.2.1 but now (more than #119 ) I get this warning (several times).

Encountered error when formatting types with Prettier t [Error]: Couldn't resolve parser "typescript". Parsers must be explicitly added to the standalone bundle.
    at y (/home/cicci/next-json/node_modules/ts-pegjs/node_modules/prettier/standalone.js:40:1014)
    at l (/home/cicci/next-json/node_modules/ts-pegjs/node_modules/prettier/standalone.js:41:943)
    at T (/home/cicci/next-json/node_modules/ts-pegjs/node_modules/prettier/standalone.js:45:290)
    at /home/cicci/next-json/node_modules/ts-pegjs/node_modules/prettier/standalone.js:116:7321
    at Object.format (/home/cicci/next-json/node_modules/ts-pegjs/node_modules/prettier/standalone.js:116:7412)
    at TypeExtractor.formatter (file:///home/cicci/next-json/node_modules/ts-pegjs/dist/tspegjs.mjs:406:25)
    at ensureCached (file:///home/cicci/next-json/node_modules/ts-pegjs/dist/tspegjs.mjs:435:32)
    at file:///home/cicci/next-json/node_modules/ts-pegjs/dist/tspegjs.mjs:456:14
    at Array.map (<anonymous>)
    at TypeExtractor.getTypes (file:///home/cicci/next-json/node_modules/ts-pegjs/dist/tspegjs.mjs:445:24)

Any idea? 😞

Thank you

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

No branches or pull requests

1 participant