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

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

Open
alx opened this issue Jul 24, 2024 · 0 comments
Open

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

alx opened this issue Jul 24, 2024 · 0 comments

Comments

@alx
Copy link

alx commented Jul 24, 2024

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
alx added a commit to alx/artbot-for-stable-diffusion that referenced this issue Jul 24, 2024
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

1 participant