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
fix: resolve npm install failure and update dependencies
- Remove postinstall script from nuxt-app that blocked npm ci
- Add prepare:types script for manual IDE type generation
- Update vue-i18n from v9 to v11 (v9/v10 deprecated)
- Regenerate package-lock.json with Node 22
- Update nuxt-app README to match actual configuration
The `@source` directive tells Tailwind to scan the Ory elements package for class names used in components.
112
+
The `@import` imports the default Ory theme styles, while `@source` tells Tailwind to scan the Ory elements package for class names used in components.
121
113
122
114
## Using Ory Components
123
115
124
116
### Auth Pages
125
117
126
-
Import the flow component and use the corresponding composable:
118
+
Import the flow component and use the corresponding composable (e.g., `pages/login.vue`):
npm run build --workspace=@ory/elements-vue --workspace=@ory/nuxt
205
197
198
+
# (Optional) Generate Nuxt types for IDE support
199
+
npm run prepare:types --workspace=nuxt-app
200
+
206
201
# Start the dev server
207
202
npm run dev --workspace=nuxt-app
208
203
```
209
204
210
205
The app will be available at http://localhost:3000.
211
206
207
+
> **Note:** The `prepare:types` script runs `nuxt prepare` to generate TypeScript declarations for better IDE support. This is optional as `nuxt dev` and `nuxt build` run it automatically.
208
+
212
209
## Internationalization (i18n)
213
210
214
-
The example uses Spanish (`es`) locale by default. To change the locale, update `nuxt.config.ts`:
211
+
The example uses English (`en`) locale by default. To change the locale, update `nuxt.config.ts`:
215
212
216
213
```typescript
217
214
ory: {
218
215
project: {
219
-
default_locale: "en", // or "fr", "de", etc.
216
+
default_locale: "fr", // or "es", "de", etc.
220
217
locale_behavior: "force_default",
221
218
},
222
219
}
223
220
```
224
221
225
-
Available locales are defined in `@ory/elements-vue/locales`.
222
+
Available locales are defined in `@ory/elements-vue`.
0 commit comments