Skip to content

New import paths in v12 are not in the dist bundle #435

@Magiczne

Description

@Magiczne

Describe the bug
Every new export in v12 is defined like so inside package.json:

"./map": {
  "import": "./dist/esm/map/index.js",
  "require": "./dist/cjs/map/index.js",
  "types": "./dist/types/components/map/index.d.ts"
},

But the installed library does not contain these files

Image

directories esm and cjs are not present.

Affected version(s)

Please run npm list --depth=0 vue vue3-openlayers ol ol-ext ol-contextmenu and paste the output below:

├── ol-contextmenu@5.5.0
├── ol-ext@4.0.34
├── ol@10.6.1
├── vue@3.5.20
└── vue3-openlayers@12.0.1

To Reproduce
Try to import files from new imports in v12, for example vue3-openlayers/map

Expected behavior
Working imports

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions