Skip to content

Prettier not defined and Error saving file: recieved promise #4

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

Open
lester51 opened this issue Feb 12, 2025 · 1 comment
Open

Prettier not defined and Error saving file: recieved promise #4

lester51 opened this issue Feb 12, 2025 · 1 comment

Comments

@lester51
Copy link

cmd recover-source -i /sdcard/AzLyrics-Lyric-Scraper/dist/cjs/

ErrLog:

An error occurred while prettifying the code: ReferenceError: prettier is not defined
    at /data/data/com.termux/files/usr/lib/node_modules/recover-source/index.js:78:17
    at SourceMapConsumer.with (/data/data/com.termux/files/usr/lib/node_modules/recover-source/node_modules/source-map/lib/source-map-consumer.js:70:20)
    at async handleFile (/data/data/com.termux/files/usr/lib/node_modules/recover-source/index.js:33:5)

After installing the prettier I encountered error at index.js line 87 on saving the file invalid data type. recieved promise.

@lester51
Copy link
Author

lester51 commented Feb 12, 2025

btw this this proj. Im trying to retrieve the original is converted into hybrid package supports imports and requires. I used tsc CLI to do that.

if your'e wondering if its my repo, yes it is:
https://github.com/lester51/AzLyrics-Lyric-Scraper

Image

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

When branches are created from issues, their pull requests are automatically linked.

1 participant