Comments (2)
Try this in your vite.config.ts @guillempuche
const monorepoRoot = path.resolve(__dirname, "..", "..");
const tamaguiConfigPath = path.resolve(
monorepoRoot,
"PUT_THE_PATH_HERE/app/theme/tamagui.config.ts",
);
// and in your plugin 👇🏿
tamaguiPlugin({
config: tamaguiConfigPath,
..
}) as PluginOption,
from tamagui.
I'm currently testing with a Remix app, not a monorepo. I used the starter kit npm create tamagui@latest
to init the project.
Today I cannot open Remix with either config (root or child) @vstlouis .
Yesterday a similar thing happened to me, after stop, start, stop, star ViteJS, it finally opened the web with Tamagui config in the root directory.
I tried this
const tamaguiConfigPath = path.resolve(__dirname, 'app/theme/tamagui.config.ts')
...
plugins: [
...
tamaguiPlugin({
components: ['tamagui'],
// config: './app/theme/tamagui.config.ts',
// config: './tamagui.config.ts',
config: tamaguiConfigPath,
logTimings: true,
}) as PluginOption,
...
Now it doesn't work, neither do the directories. The @tamagui/vite-plugin
and @tamagui/static/.../extractor
directories have problems.
Error:
9:49:28 [vite] Internal server error: Must provide components
Plugin: tamagui-extract
File: /Users/guillem/programacio/codi/cites/ui/appui/app/entry.server.tsx
at parseWithConfig (/Users/guillem/programacio/codi/cites/ui/appui/node_modules/@tamagui/static/dist/cjs/extractor/createExtractor.js:130:13)
at Object.parse (/Users/guillem/programacio/codi/cites/ui/appui/node_modules/@tamagui/static/dist/cjs/extractor/createExtractor.js:91:14)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Object.extractToClassNames (/Users/guillem/programacio/codi/cites/ui/appui/node_modules/@tamagui/static/dist/cjs/extractor/extractToClassNames.js:64:15)
at async TransformContext.transform (file:///Users/guillem/programacio/codi/cites/ui/appui/node_modules/@tamagui/vite-plugin/dist/esm/extract.mjs:98:25)
at async Object.transform (file:///Users/guillem/programacio/codi/cites/ui/appui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:51133:30)
at async loadAndTransform (file:///Users/guillem/programacio/codi/cites/ui/appui/node_modules/vite/dist/node/chunks/dep-DkOS1hkm.js:53888:29)
from tamagui.
Related Issues (20)
- SVG tags being wrapped HOT 4
- Render Error: Cannot read property 'state' of undefined HOT 1
- [Bug] Select Trigger causes submission when inside a form (Web)
- Enter animations don't work with CSS HOT 1
- Datepicker Bento Component Error Android Only HOT 1
- @tamagui/constants esm build is missing platform-specific .mjs files HOT 8
- Error when build application with animations-moti HOT 3
- Button pressStyle stuck on after first press HOT 1
- Cannot find module 'react-dom' from Tamagui 1.97.0 in bare React Native HOT 2
- Why does TamaGUI has so big slowdown in performance? HOT 2
- Input component Errors out on React Native: Cannot read property useRef of null HOT 11
- screen will flash when too fast to toggle two dialog.
- `ListItem` ignores `borderRadius`
- borderStyle is ignored when borderRadius is set
- create tamagui@latest start with a bug on mobile HOT 5
- Updated to Expo 50 - Now Can't find Module (lucide-icons) HOT 2
- Component specific theme - without light_ prefix, doesn't apply
- Expo router starter has wrong colorScheme on device set on light mode HOT 7
- Installation with Expo requires config HOT 1
- Individual border radius properties are ignored on web
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 tamagui.