Closed Suprhimp closed 1 year ago
Cursory glance here reveals a possible source of the issue.
Edit: Yeah, seems to be it. Bandaid fix 🩹:
git clone https://github.com/utsuboco/create-r3f-app && cd create-r3f-app
Edit this function: https://github.com/utsuboco/create-r3f-app/blob/acbfd0829f1fc41691934624f35e779a70e57ece/lib/stacks/next.js#L93
const initForTypeScript = async (root, rootFolder) => {
// Add this
fs.mkdir('app', (err) => {
if (err) throw err;
});
Run with:
node bin/create-r3f-app next myproject
tailwind -ts
Thanks! Just published a patch with this fix on create-r3f-app.
https://github.com/utsuboco/create-r3f-app/commit/320feb79ac293aab49f4419b7370b2238c37dc82
Should also fix #125
I test with without command
-ts
or--typescript
, it works well.When I try to create with typescript it cause this error.
I tried install node-sass and npm rebuild node-sass but it wasn't helped when I look generated project it has no /app directory also.(I think it is not needed right?)