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

Error: fs/promises #114

Closed
mishop opened this issue Aug 7, 2023 · 1 comment
Closed

Error: fs/promises #114

mishop opened this issue Aug 7, 2023 · 1 comment

Comments

@mishop
Copy link

mishop commented Aug 7, 2023

#0 7.684 ./pages/api/settings.ts #0 7.684 4:1 Error: fs/promisesimport should occur before type import ofnext import/order

Solved changing order:
import { writeFile, readFile } from 'fs/promises';

@voidxd
Copy link

voidxd commented Aug 15, 2023

I have also changed the order in serpbear/pages/api/settings.ts to:

import { writeFile, readFile } from 'fs/promises';
import type { NextApiRequest, NextApiResponse } from 'next';
import Cryptr from 'cryptr';
import getConfig from 'next/config';
import verifyUser from '../../utils/verifyUser';
import allScrapers from '../../scrapers/index';

Then started the process over again and I'm getting the same error. I'm trying to deploy on fly.io.

@towfiqi towfiqi closed this as completed in be80ed7 Nov 3, 2023
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