You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this error and warning from the nextjs-app v3.58.0 build:
➤ YN0000: [nextjs-app]: info - Loaded env from /Users/joe/repos/nounzoo/apps/nextjs-app/.env
➤ YN0000: [nextjs-app]: notice- Will transpile [ky]
➤ YN0000: [nextjs-app]: info - Linting and checking validity of types...
➤ YN0000: [nextjs-app]: warn - You have enabled experimental features (outputFileTracingRoot, externalDir) in next.config.mjs.
➤ YN0000: [nextjs-app]: warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use at your own risk.
➤ YN0000: [nextjs-app]:
➤ YN0000: [nextjs-app]:
➤ YN0000: [nextjs-app]: Failed to compile.
➤ YN0000: [nextjs-app]:
➤ YN0000: [nextjs-app]: ./src/backend/graphql/graphqlSchema.ts
➤ YN0000: [nextjs-app]: 4:1 Error: `@nounzoo/db-main-prisma` import should occur before import of `@pothos/core` import/order
➤ YN0000: [nextjs-app]:
➤ YN0000: [nextjs-app]: ./src/features/home/blocks/hero/HeroBlock.tsx
➤ YN0000: [nextjs-app]: 10:11 Warning: 't' is assigned a value but never used. @typescript-eslint/no-unused-vars
➤ YN0000: [nextjs-app]:
➤ YN0000: [nextjs-app]: info - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
➤ YN0000: [nextjs-app]: Process exited (exit code 1), completed in 8s 902ms
I was able to eliminate the error by moving the following line to the top of the file graphqlSchema.ts:
import type { DbMainPrismaTypes } from '@nounzoo/db-main-prisma';
And by removing the following two lines from HeroBlock.tsx:
import { useTranslation } from 'next-i18next';
const { t } = useTranslation(['home', 'common']);
Would you like a pull request?
The text was updated successfully, but these errors were encountered:
Note that this is done automatically for you when you commit (lint-staged/husky)
And of course you can setup your ide (vscode/webstorm...) to automatically run the linter on save. If you use the example config, it should be done for you:
Okay, thank you. FYI, I've decided to use your monorepo example and another as references for creating my own, as there's more complexity than I'd like at the start of a project. I'd like to extend the solution as I feel the need.
I got this error and warning from the nextjs-app v3.58.0 build:
I was able to eliminate the error by moving the following line to the top of the file
graphqlSchema.ts
:import type { DbMainPrismaTypes } from '@nounzoo/db-main-prisma';
And by removing the following two lines from
HeroBlock.tsx
:import { useTranslation } from 'next-i18next';
const { t } = useTranslation(['home', 'common']);
Would you like a pull request?
The text was updated successfully, but these errors were encountered: