Invalid "exports" target "src/once.js" defined for "." in the package config

Created on 5 August 2024, 5 months ago
Updated 10 August 2024, 4 months ago

Problem/Motivation

Using `@drupal/once` installed from npm in Storybook, I see the following error:
```
Module not found: Error: Invalid "exports" target "src/once.js" defined for "." in the package config node_modules/@drupal/once/package.json, targets must start with "./"
```

Proposed resolution

In the package.json file, the exports path should use a relative path starting with ./

🐛 Bug report
Status

RTBC

Component

Code

Created by

🇺🇸United States kmonahan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024