Skip to content

help: Unable to figure out how to install Nuxt and Ionic together #221

Description

@tylerclark

📚 What are you trying to do?

I tried to run:

npm init nuxt-app test
cd test
npm install @nuxtjs/ionic -D

I do not get a nuxt.config.ts file, but instead a nuxt.config.js file. When I add '@nuxtjs/ionic' to modules array I get:

> nuxt


 FATAL  Cannot read property 'optimizeDeps' of undefined                        00:46:35

  at setup (node_modules/@nuxtjs/ionic/dist/module.mjs:157:56)
  at ModuleContainer.normalizedModule (node_modules/@nuxt/kit/dist/index.mjs:167:29)
  at async ModuleContainer.addModule (node_modules/@nuxt/core/dist/core.js:239:20)
  at async ModuleContainer.ready (node_modules/@nuxt/core/dist/core.js:55:5)
  at async Nuxt._init (node_modules/@nuxt/core/dist/core.js:478:5)


   ╭─────────────────────────────────────────────────────────────────╮
   │                                                                 │
   │   ✖ Nuxt Fatal Error                                            │
   │                                                                 │
   │   TypeError: Cannot read property 'optimizeDeps' of undefined   │
   │                                                                 │
   ╰─────────────────────────────────────────────────────────────────╯

🔍 What have you tried?

I tried to also run npx create-nuxt-app test but results were the same

ℹ️ Additional context

Perhaps it's me. What else should I do to spin up a nuxt + ionic project?

UPDATE: When I ran npx nuxi init test I think I got a working project!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions