FeathersVuexPagination.js: export 'createElement' was not found in '@vue/composition-api
See original GitHub issueSteps to reproduce
Fresh, new install in Nuxt 2.1:
// plugins/featers-client
import feathers from '@feathersjs/feathers'
import socketio from '@feathersjs/socketio-client'
import auth from '@feathersjs/authentication-client'
import io from 'socket.io-client'
import { CookieStorage } from 'cookie-storage'
let API_URL = 'https://app.bligson.com/api'
if (window.location.hostname === 'localhost') {
API_URL = 'http://localhost:3030'
}
const socket = io(API_URL, {
transports: ['websocket']
})
const storage = new CookieStorage()
const feathersClient = feathers()
.configure(socketio(socket))
.configure(auth({ storage }))
export default feathersClient
And then:
// store/auth.js
import feathersVuex from 'feathers-vuex'
import feathersClient from '@/plugins/feathers-client'
const {
service,
auth,
FeathersVuex
} = feathersVuex(feathersClient, {
idField: '_id'
})
export default {
service,
auth,
FeathersVuex
}
First attempt I get warning I need to install @vue/composition-api
Was not clear from docs, but npm install save ...
.
But now I am stuck after:
./node_modules/feathers-vuex/dist/FeathersVuexPagination.js friendly-errors 12:20:52
"export 'createElement' was not found in '@vue/composition-api'
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:27 (20 by maintainers)
Top Results From Across the Web
export 'createElement' was not found in '@vue/composition-api
FeathersVuexPagination.js: export 'createElement' was not found in '@vue/composition-api.
Read more >vue.js - "export 'default' (imported as 'Vue') was not found in 'vue'
The reason this is happening is because in Vue 2, Vue provides a default export export default vue , which allows BootstrapVue to...
Read more >Composition API | FeathersVuex
With the Vue Composition API, there's no this object. It has been replaced by the context object. So, only when using the composition...
Read more >API - esbuild
This API call is used by the command-line interface if no input files are provided and the --bundle flag is not present. In...
Read more >Vue's Composition API - CODE Magazine
npm i @vue/composition-api --save ... No magic, just JavaScript. ... import { ref } from "@vue/composition-api"; export default { setup() ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tvld, the composition API entered beta status and broke a couple of things.
Use
@vue/composition-api@0.6.7
(version 0.6.7) instead:The
createElement
function that was imported has been aliased to justh
as a convention (see: here)When using vite, this produces a build error: