Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
This repository was archived by the owner on May 14, 2026. It is now read-only.

Error with new exports field on package.json #1019

Description

@uilton-oliveira

Describe the bug

i recently created a fork of shoelace and while testing it out, we are seeing a error that does not happens in production release but happens on new versions built... Looks like it is related to this PR

If i remove the new exports block, it work fine... i'm missing anything?

ERROR in ./src/externals/vendors.js 83:0-66
Module not found: Error: Package path ./dist/themes/light.css is not exported from package C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system (see exports field in C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system\package.json)

ERROR in ./src/externals/vendors.js 84:0-77
Module not found: Error: Package path ./dist/components/button/button.js is not exported from package C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system (see exports field in C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system\package.json)

ERROR in ./src/externals/vendors.js 85:0-73
Module not found: Error: Package path ./dist/components/icon/icon.js is not exported from package C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system (see exports field in C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system\package.json)

ERROR in ./src/externals/vendors.js 87:0-93
Module not found: Error: Package path ./dist/utilities/base-path.js is not exported from package C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system (see exports field in C:\Programacao\platform-cortex\modules\competitiva\frontend\node_modules\@cortex-intelligence\design-system\package.json)

To Reproduce

I trying to import a fresh fork of this project to a existing project, like this:

import '@cortex-intelligence/design-system/dist/themes/light.css';
import '@cortex-intelligence/design-system/dist/components/button/button.js';
import '@cortex-intelligence/design-system/dist/components/icon/icon.js';

import { setBasePath } from '@cortex-intelligence/design-system/dist/utilities/base-path.js';
// Set the base path to the folder you copied Shoelace's assets to
setBasePath('/client/js/design-system');

Demo

Tell me if its required, if so i create it.

Screenshots

If applicable, add screenshots to help explain the bug.

Browser / OS

  • OS: Windows 11
  • Browser: Chrome
  • Browser version: Latest

Additional information

Metadata

Metadata

Assignees

Labels

bugThings that aren't working right in the library.

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