Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No SSG support #47

Open
KonradMil opened this issue Jun 27, 2022 · 1 comment
Open

No SSG support #47

KonradMil opened this issue Jun 27, 2022 · 1 comment

Comments

@KonradMil
Copy link

Hi there,

I came here because I couldn't make SSG work on normal vitese hoping that you fixed that somehow, but it all resolves around same problem.

Directory import /node_modules/primevue/autocomplete' is not supported resolving ES modules imported

@donPuerto
Copy link

donPuerto commented Feb 13, 2023

Im also stuck importing module? any idea

// register vue composition api globally
import { ViteSSG } from 'vite-ssg'
import generatedRoutes from 'virtual:generated-pages'
import { setupLayouts } from 'virtual:generated-layouts'
import App from './App.vue'
import 'uno.css'
import '@sfxcode/formkit-primevue/dist/sass/formkit-primevue.scss'
import '@sfxcode/formkit-primevue/dist/sass/formkit-prime-inputs.scss'

const routes = setupLayouts(generatedRoutes)

export const createApp = ViteSSG(
  App,
  { routes },
  (ctx) => {
    // install all modules under `modules/`
    Object.values(import.meta.globEager('./modules/*.ts')).map(i => i.install?.(ctx))
  },

)

the "i" in mapping the module is an error
By the way what do you mean by the above code?
Why do we pass the "ctx" to install?

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

No branches or pull requests

2 participants