📚 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!
📚 What are you trying to do?
I tried to run:
I do not get a
nuxt.config.tsfile, but instead anuxt.config.jsfile. When I add'@nuxtjs/ionic'tomodulesarray I get:🔍 What have you tried?
I tried to also run
npx create-nuxt-app testbut 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 testI think I got a working project!