Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Set up Pinia #831

Closed
1 of 5 tasks
obulat opened this issue Feb 8, 2022 · 0 comments · Fixed by #906 or #997
Closed
1 of 5 tasks

Set up Pinia #831

obulat opened this issue Feb 8, 2022 · 0 comments · Fixed by #906 or #997
Assignees
Labels
💻 aspect: code Concerns the software code in the repository ✨ goal: improvement Improvement to an existing user-facing feature 🟩 priority: low Low priority and doesn't need to be rushed

Comments

@obulat
Copy link
Contributor

obulat commented Feb 8, 2022

Problem

Pinia setup needs several changes in the nuxt.config.js and the project folder structure.

Description

Here is a list of what needs to be done to install Pinia and make sure it can run correctly:

  • Run pnpm install pinia @pinia/nuxt @pinia/testing
  • Add @pinia/nuxt to the buildModules in nuxt.config.js
  • Add an mjs rule snippet to nuxt.config.js's build.extend to ensure mjs files are treated correctly (and prevent errors like: Can't import the named export 'watch' from non EcmaScript module (only default export is available)):
config.module.rules.push({
  test: /\.mjs$/,
  include: /node_modules/,
  type: 'javascript/auto',
})
  • Create stores folder and add types.d.ts from store folder into it.

Implementation

  • 🙋 I would be interested in implementing this feature.
@obulat obulat added 🟩 priority: low Low priority and doesn't need to be rushed 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work ✨ goal: improvement Improvement to an existing user-facing feature 💻 aspect: code Concerns the software code in the repository labels Feb 8, 2022
@obulat obulat added this to the Switch from Vuex to Pinia milestone Feb 8, 2022
@obulat obulat self-assigned this Feb 8, 2022
@obulat obulat removed the 🚦 status: awaiting triage Has not been triaged & therefore, not ready for work label Feb 15, 2022
@obulat obulat mentioned this issue Feb 15, 2022
1 task
@obulat obulat linked a pull request Feb 22, 2022 that will close this issue
7 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
💻 aspect: code Concerns the software code in the repository ✨ goal: improvement Improvement to an existing user-facing feature 🟩 priority: low Low priority and doesn't need to be rushed
Projects
None yet
1 participant