Skip to content

Weird issues after upgrading to version 1.0 #588

Open
@thomashohn

Description

@thomashohn

Hi

After upgrading to version 1.0.0 and following the guide - we have started to see this error in a project that uses a shared component

[ nuxi  12:01:24 PM]  ERROR  Cannot start nuxt:  Error while importing module @gyldendalsolutions/sharedcomponents: Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Volumes/dev/repos/my_ibooks_frontend/node_modules/.pnpm/[email protected]/node_modules/jiti/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/jiti.mjs' imported from /Volumes/dev/repos/my_ibooks_frontend/node_modules/.pnpm/[email protected]/node_modules/jiti/lib/jiti.mjs
    at loadNuxtModuleInstance (node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2565:15)
    at async installModule (node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/kit/dist/index.mjs:2480:67)
    at async initNuxt (node_modules/.pnpm/[email protected]_@[email protected]_@[email protected][email protected][email protected][email protected]._0bcfd39a16c7773726dbc85ef80643ae/node_modules/nuxt/dist/shared/nuxt.iYoBCR2R.mjs:5833:5)
    at async NuxtDevServer._load (node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/cli/dist/chunks/dev2.mjs:183:5)
    at async NuxtDevServer.load (node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/cli/dist/chunks/dev2.mjs:111:7)
    at async NuxtDevServer.init (node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/cli/dist/chunks/dev2.mjs:106:5)
    at async Object.run (node_modules/.pnpm/@[email protected][email protected]/node_modules/@nuxt/cli/dist/chunks/dev-child.mjs:95:5)
    at async runCommand (node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:316:16)
    at async runCommand (node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:307:11)
    at async runMain (node_modules/.pnpm/[email protected]/node_modules/citty/dist/index.mjs:445:7)
The componets works fine with 0.8.4 - but is included via
 "@gyldendalsolutions/sharedcomponents": "file:../sharedcomponents",

Could that cause an issue with the latest version?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions