Comments (3)
Related to #9545
from redwood.
Hey @irg1008, you can find the code for studio in this repo: https://github.com/redwoodjs/studio.
For the main repo we started using a single function to generate the import string. We had been doing it individually across the code base and had been inconsistent in our approach - which led to bugs like this every now and then. This code might be transferable if you think it is correct to solve this issue:
redwood/packages/vite/src/utils.ts
Lines 31 to 37 in 93222dd
from redwood.
I will take a look when I get the time, in the meantime I have moved to WSL and no issues so far. On the other hand, do you know if the team is discussing about adding support for "shared" code or packages in monorepo? I mean sharing code and being able to import it both in web and api (my use cases are zod schemas)
I am being able to use this schemas when inside "scripts" folder and web, but importing inside api and it won't work without compiling etc
I know of a couple of issues regarding this but they are stale or are 1 or more years old. I could open a new issue but I don't want to start bloating the repo
from redwood.
Related Issues (20)
- chore(deps): update dependency @supabase/supabase-js to v2.43.5
- [Bug?]: Can't configure Jest/Vitest to run tests inside of scripts dir
- [Bug?]: `web/src/auto-imports.d.ts` file generated after running `yarn rw storybook-vite` HOT 4
- [Bug?]: Pre-render does not work HOT 7
- [Bug?]: Flaky Testing with Prisma migrations failing HOT 5
- [Bug]: Docs search is broken HOT 3
- [Bug?]: yarn rw upgrade for 7.7.1 error HOT 6
- [Bug]: Scenario files in a __tests__ directory throws error in Jest HOT 3
- [Bug?]: Docker compose errors with graphql fragments HOT 8
- [Bug?]: Dev server builds break after multiple consecutive filesystem saves HOT 5
- [RFC]: Remove default UserExample model in newly generated Redwood app
- [Background jobs] Generators
- [Bug?]: Trusted Documents does not work with Realtime. HOT 7
- [Feature]: ESLint flat config support for @redwoodjs/eslint-config HOT 2
- [Bug?]: corepack enable does nothing on fresh clone (yarn stays on v1.x) HOT 1
- [Feature]: ESLint flat config support for @redwoodjs/eslint-plugin HOT 1
- [Bug?]: Deploy to Vercel breaks all server functions (500 errors with cryptic messages) HOT 9
- [Bug?]: yarn rw setup server-file fails with js but works with ts HOT 5
- Multiple RW apps all use the same debug port
- Syntax check `package.json` for dual ESM+CJS support in `@redwoodjs/auth`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from redwood.