daveschumaker/artbot-for-stable-diffusion

Module not found: Can't resolve './TextButton.module.css'

alx opened this issue · 0 comments

alx commented

Hi @daveschumaker ,

Thanks for your project, I think I've found an easy typo to fix at this line:

import styles from './TextButton.module.css' // Import the CSS module

import styles from './TextButton.module.css' // Import the CSS module

TextButton.module.css should be replaced by textButton.module.css in order for the npm run build command to complete:

import styles from './textButton.module.css' // Import the CSS module

npm run build command output:

$ npm run build

> next-horde@0.1.0 build
> npm run update:build-id && next build


> next-horde@0.1.0 update:build-id
> node ./x-build-scripts/updateBuildId.js

   ▲ Next.js 14.0.4

Failed to compile.

./app/_components/TextButton/index.tsx
Module not found: Can't resolve './TextButton.module.css'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./app/_pages/ImagesPage/index.tsx


> Build failed because of webpack errors
   Creating an optimized production build