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
Setup a new app using npx npx create-snowpack-app snowpack --template @snowpack/app-template-react-typescript npm install @snowpack/plugin-sass --save-dev
Add sass file app.sass
.test
width: 30px
height: 30px
background: red
App.tsx import styles from './app.sass' <div className={styles.test}/>
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
"snowpack": "^2.17.0",
"@snowpack/plugin-sass": "^1.1.1",
Setup a new app using npx
npx create-snowpack-app snowpack --template @snowpack/app-template-react-typescript
npm install @snowpack/plugin-sass --save-dev
Add sass file
app.sass
App.tsx
import styles from './app.sass'
<div className={styles.test}/>
Snowpack
devOptions
Run snowpack dev
npm start => snowpack dev
Error
SyntaxError: The requested module './app.css.proxy.js' does not provide an export named 'default'
Beta Was this translation helpful? Give feedback.
All reactions