Skip to content

Conversation

@pascalwengerter
Copy link
Contributor

Types of changes

  • Chore (Dependency updates and housekeeping)

Description

  • Updates Nuxt, TypeScript and the Supabase JS client in demo
  • Replaces the outdated @nuxthq/ui with @nuxt/ui in demo

Checklist:

  • I have tested my changes locally

The updated Nuxt UI package is not a 100% replacement, but "good" enough - some margins/paddings have been changed, and the dark mode is not inversed on the cards anymore

@netlify
Copy link

netlify bot commented Sep 1, 2024

Deploy Preview for n3-supabase failed. Why did it fail? →

Name Link
🔨 Latest commit 6ae4d79
🔍 Latest deploy log https://app.netlify.com/sites/n3-supabase/deploys/66dabb84abe6bf0008f13afa

Comment on lines 2 to 4
ui: {
primary: 'green',
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
ui: {
primary: 'green',
}
ui: {
primary: 'green',
},

Comment on lines 1 to 25
export default defineNuxtConfig({
modules: [
// https://github.com/nuxt-modules/supabase
'@nuxtjs/supabase',
// UI lib (will be soon open sourced)
'@nuxthq/ui',
"@nuxtjs/supabase",
// https://github.com/nuxt/ui
"@nuxt/ui",
// https://github.com/nuxt-modules/color-mode
'@nuxtjs/color-mode',
"@nuxtjs/color-mode",
],

runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
baseUrl: process.env.BASE_URL || "http://localhost:3000",
},
},
ui: {
colors: {
primary: 'green',
},
icons: ['mdi', 'heroicons', 'heroicons-outline'],
},

supabase: {
redirectOptions: {
login: '/',
callback: '/confirm',
login: "/",
callback: "/confirm",
},
},
})

compatibilityDate: "2024-09-01",
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
export default defineNuxtConfig({
modules: [
// https://github.com/nuxt-modules/supabase
'@nuxtjs/supabase',
// UI lib (will be soon open sourced)
'@nuxthq/ui',
"@nuxtjs/supabase",
// https://github.com/nuxt/ui
"@nuxt/ui",
// https://github.com/nuxt-modules/color-mode
'@nuxtjs/color-mode',
"@nuxtjs/color-mode",
],
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
baseUrl: process.env.BASE_URL || "http://localhost:3000",
},
},
ui: {
colors: {
primary: 'green',
},
icons: ['mdi', 'heroicons', 'heroicons-outline'],
},
supabase: {
redirectOptions: {
login: '/',
callback: '/confirm',
login: "/",
callback: "/confirm",
},
},
})
compatibilityDate: "2024-09-01",
});
export default defineNuxtConfig({
modules: [
// https://github.com/nuxt-modules/supabase
'@nuxtjs/supabase',
// https://github.com/nuxt/ui
'@nuxt/ui',
// https://github.com/nuxt-modules/color-mode
'@nuxtjs/color-mode',
],
runtimeConfig: {
public: {
baseUrl: process.env.BASE_URL || 'http://localhost:3000',
},
},
supabase: {
redirectOptions: {
login: '/',
callback: '/confirm',
},
},
compatibilityDate: '2024-09-01',
})

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review! Just now realized there's a linter in the root of the repo 🙈 fixed

Copy link
Collaborator

@larbish larbish left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @pascalwengerter!

However I'm not able to start the demo locally (even after a clean of all deps and .nuxt folder). Are you not facing those issues with a fresh install?

Screenshot 2024-09-02 at 09 56 59

@pascalwengerter
Copy link
Contributor Author

Thanks for the PR @pascalwengerter!

However I'm not able to start the demo locally (even after a clean of all deps and .nuxt folder). Are you not facing those issues with a fresh install?
Screenshot 2024-09-02 at 09 56 59

Well it worked yesterday, starting the project today gives me the same error you displayed here -.-

@larbish larbish merged commit ab9a83a into nuxt-modules:main Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants