UNPKG

vike

Version:

(Replaces Next.js/Nuxt) 🔨 Composable framework to build advanced applications with flexibility and stability.

9 lines (8 loc) • 347 B
import { assertUsage } from '../utils/assert.js'; import './assertEnvClient.js'; assertUsage(false, [ 'Server imports are forbidden on the client-side:', " import { something } from 'vike/server'", 'Did you mean the following instead?', " import { something } from 'vike/client/router'", ].join('\n'), { showStackTrace: true });