Open
Description
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Enterprise
Binaries:
Node: 16.14.2
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.0.2-canary.0
eslint-config-next: 13.0.1
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
Chrome
How are you deploying your application? (if relevant)
No response
Describe the Bug
Scss modules do not appear to be loading under the new turbo
The style import always returns undefined.
Expected Behavior
Style is loaded and the red background css is present on the div.test element.
Link to reproduction
used npx-create-next-app
To Reproduce
When creating a new project from following command:
npx create-next-app@latest --experimental-app
And updating dev script to inlclude the turbo flag
"dev": "next dev --turbo",
Also loaded npm package "sass" as per instruction
When creating a very basic scss file: (./test.module.scss) in the app directory
.test { background-color: red; }
And creating an page.js file in app directory
`
import styles from './test.module.scss';
const Home = () => {
return (
<div className={styles.test}>
test
</div>
);
};
export default Home;
`