Skip to content

Expected "meta" but found "meta$1" - rollup error with dynamic imports #14650

@lucassimines

Description

@lucassimines

Environment


  • Operating System: Darwin
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.8-27681070.ad63817
  • Package Manager: npm@8.8.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://codesandbox.io/s/delicate-hill-p8707x?file=/views/subpages/%5Bid%5D.vue

Describe the bug

If I call more than one Lazy component between different folders, the Nuxt build will throw an error.

Additional context

To reproduce, run $ npm run build

Logs

Expected "meta" but found "meta$1"
11717|  };
11718|
11719|  defineAsyncComponent(() => __vitePreload(() => import('./Text.100e7f97.js'),true?"__VITE_PRELOAD__":void 0,import.meta$1.url));
   |                        ^
11720|  const meta$1 = undefined;
11721|

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions