Comments (7)
In the project.json
of the NextJS app you can configure this https://nx.dev/nx-api/next/executors/server
from tamagui.
try type: "module"
in your package.json
from tamagui.
NextJS apps don't have package.json
in Nx out of the box.
from tamagui.
ok does that helped?
from tamagui.
No. There aren't options to define the module in Nx Next plugin in project.json
.
And I also tried to add a simple package.json
that Nx supports (https://nx.dev/reference/project-configuration#including-packagejson-files-as-projects-in-the-graph) to the Vite web and nothing
{
"name": "name",
"version": "0.0.0",
"private": true,
"type": "module"
}
New Nx projects don't come with package.json by default.
from tamagui.
I think Nx doesn't need package.json
files because it takes the Typescript project settings from tsconfig.json
(https://github.com/guillempuche/nx-expo-next-tamagui/blob/main/apps/next/tsconfig.json#L22C13-L22C13)
from tamagui.
+1 here; I added "type": "module"
package.json of NextJS app, but same outcome (I am using next.config.mjs
:
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '/Users/username/Projects/app/node_modules/next/dist/build/webpack/config/blocks/css' is not supported resolving ES modules imported from /Users/username/Projects/app/node_modules/@tamagui/next-plugin/dist/esm/withTamagui.mjs
Did you mean to import next/dist/build/webpack/config/blocks/css/index.js
Edit: Everything is working fine up to v1.94.2 (v1.94.1 is the last one that works as it should without any config changes).
from tamagui.
Related Issues (20)
- Incorrect debug=verbose in SheetOverlay HOT 1
- repeat attribute in animation not working in web HOT 1
- Adding fontWeight: 600 with system-fonts doesn't make texts appear bold on Android HOT 16
- Vite web error on initializing `Error in Tamagui parse, skipping package.json not found in path Error: package.json not found in path` in a Nx monorepo HOT 3
- Toggle the theme
- Bug: Sheet mounting inside iframe and the root of dom
- Tamagui Website: Overload Animation Frames - Reanimated HOT 3
- Switch & Switch.Thumb Animation Bug on React Native HOT 1
- Cannot force pseudo style of children in a group HOT 5
- Keyboard not dismissed after editing text in Input field inside Sheet HOT 1
- `@tamagui/vite-plugin` doesn't support Tamagui config file in child folders HOT 2
- BottomSheet Component Fails to Function Correctly on Tab Switch or Route Navigation (using expo router) HOT 4
- Expo eas build fails Unable to resolve module @tamagui/use-did-finish-ssr HOT 32
- Next.JS App Router example is broken/outdated HOT 1
- duplicate ID for input HOT 5
- Css animations entryStyle doesn't work with nextjs app folder HOT 3
- Bug(Android): Can't call tRPC inside Sheet HOT 3
- TypeError Cannot read property 'useMemo' of null HOT 13
- Font related property broken HOT 3
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.