Comments (5)
Added instructions into the starter kit.
I've especially written a section on docs on the Stateful Singleton pattern when on SSR and its pitfalls, but adding a warning + instructions on the starter kit doesn't hurts. So thank you for this ticket.
from quasar-starter-kit.
I followed the instructions on the docs but I get
"was not found in 'vue-router' (possible exports: BaseTransition, Comment, EffectScope, Fragment, KeepAlive, ReactiveEffect, Static, Suspense, Teleport, Text, Transition, TransitionGroup, VueElement, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, cloneVNode, compatUtils, compile, computed, createApp, createBlock, createCommentVNode, createElementBlock, createElementVNode, createHydrationRenderer, createPropsRestProxy, createRenderer, createSSRApp, createSlots, createStaticVNode, createTextVNode, createVNode, customRef, defineAsyncComponent, defineComponent, defineCustomElement, defineEmits, defineExpose, defineProps, defineSSRCustomElement, devtools, effect, effectScope, getCurrentInstance, getCurrentScope, getTransitionRawChildren, guardReactiveProps, h, handleError, hydrate, initCustomFormatter, initDirectivesForSSR, inject, isMemoSame, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isVNode, markRaw, mergeDefaults, mergeProps, nextTick, normalizeClass, normalizeProps, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, openBlock, popScopeId, provide, proxyRefs, pushScopeId, queuePostFlushCb, reactive, readonly, ref, registerRuntimeCompiler, render, renderList, renderSlot, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolveTransitionHooks, setBlockTracking, setDevtoolsHook, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, ssrContextKey, ssrUtils, stop, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, transformVNodeArgs, triggerRef, unref, useAttrs, useCssModule, useCssVars, useSSRContext, useSlots, useTransitionState, vModelCheckbox, vModelDynamic, vModelRadio, vModelSelect, vModelText, vShow, version, warn, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withKeys, withMemo, withModifiers, withScopeId)"
error..
from quasar-starter-kit.
@kuntik17 are you on latest quasar version?
from quasar-starter-kit.
Yes. On the docs it says;
export default function (/* { store, ssrContext } /) {
const Router = new VueRouter({...})
return Router
}
// src/store/index.js
export default function (/ { ssrContext } */) {
const Store = new Vuex.Store({...})
return Store
}
however, Quasar CLI creates router and store with;
const Router = createRouter({
const Store = createStore({
instead of new VueRouter or new Vuex.Store.. When I try to use new VueRouter or new Vuex.Store I got that error..
from quasar-starter-kit.
Yes.
// src/router/index.js export default function (/* { store, ssrContext } */) { const Router = new VueRouter({...}) return Router }
SSR can't write
use
import { route } from "quasar/wrappers";
export default route<any>(function ({ store, ssrContext }) {
const createHistory = process.env.SERVER
? createMemoryHistory
: process.env.VUE_ROUTER_MODE === "history"
? createWebHistory
: createWebHashHistory;
...
}
from quasar-starter-kit.
Related Issues (20)
- Composition API not instantiated fast enough to be used outside of components HOT 11
- Outdated dependency warnings HOT 1
- Starter Kits Capacitor iOS builds in simulator but times out on device HOT 2
- Including module-example in store prevents SSR from rendering HOT 1
- Quasar Create Issue in Windows HOT 2
- EssentialLink does not use openURL HOT 1
- Relative module not found on i18n - branch next HOT 1
- Feature: command line option to re-apply templates HOT 1
- i18n: auto-detect locale HOT 2
- Setup fails with lint error with airbnb config HOT 3
- `quasar dev` fails on a new, clean project HOT 1
- ESLint Standard - PropType not found in ‘vue‘ (and other types) HOT 2
- Vue Class Component - Project Inactivity and HMR Failure HOT 4
- readme has incorrect quasar create HOT 3
- SSR + vue-i18n starter kit issue (memory leak) HOT 8
- ESLint 8 support HOT 1
- Failed to Download Starter Kit when Creating Quasar Project HOT 2
- Support TS properly for other ESLint presets and/or make Prettier the recommended TS preset HOT 1
- Browserlist is too inclusive 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 quasar-starter-kit.