GithubHelp home page GithubHelp logo

Comments (6)

kumv-net avatar kumv-net commented on August 28, 2024 6

pinia same error,need fix as soon as possible

from vue-demi.

esorribas avatar esorribas commented on August 28, 2024 4
  1. Drop "overrides>vue" directive on package.json
  2. npm uninstall pinia
  3. npm install --legacy-peer-deps pinia

from vue-demi.

McLamy avatar McLamy commented on August 28, 2024 3

@esorribas After your comment I was able to get "NITRO_PRESET=firebase yarn build" up and running 👍

from vue-demi.

kumv-net avatar kumv-net commented on August 28, 2024 1

caught SyntaxError: The requested module '/@fs/E:/xxx/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-demi/lib/index.mjs?v=5975676c' does not provide an export named 'hasInjectionContext' (at pinia.mjs:6:10)

http://localhost:5173/@fs/E:/xxx/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/pinia/dist/pinia.mjs

import { hasInjectionContext, inject, toRaw, watch, unref, markRaw, effectScope
, ref, isVue2, isRef, isReactive, set, getCurrentScope, onScopeDispose, getCurrentInstance
, reactive, toRef, del, nextTick, computed, toRefs } from
"/@fs/E:/xxx/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-demi/lib/index.mjs?v=5975676c";

from vue-demi.

Teaghy avatar Teaghy commented on August 28, 2024

捕获语法错误:请求的模块'/@fs/E:/xxx/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-demi/lib/index.mjs?v=5975676c'确实不提供名为“hasInjectionContext”的导出(在 pinia.mjs:6:10)

http://localhost:5173/@fs/E:/xxx/node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/pinia/dist/pinia.mjs

import { hasInjectionContext, inject, toRaw, watch, unref, markRaw, effectScope , ref, isVue2, isRef, isReactive, set, getCurrentScope, onScopeDispose, getCurrentInstance, reactive, toRef, del, nextTick, computed, toRefs } from "/@fs/ E:/xxx/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-demi/lib/index.mjs?v=5975676c";

In vue-demi, 'hasInjectionContext' is provided by Vue in version 3. Please check if your Vue version is up-to-date and provides this method. I'm using the latest version of Vue and Pinia, and I haven't encountered the issue you mentioned. You can try it out.

from vue-demi.

marcodarko avatar marcodarko commented on August 28, 2024

Any luck with this? I've tried all the things online and absolutely no luck.

from vue-demi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.