Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix. Properly set exports value in package.json #708

Merged
merged 1 commit into from
May 7, 2024

Conversation

jcbrand
Copy link
Contributor

@jcbrand jcbrand commented May 7, 2024

Otherwise the following error appears when importing from Strophe:

Module not found: Error: Package path . is not exported from package

From what I can tell looking at the documentation (https://webpack.js.org/guides/package-exports), the previous values are invalid since they don't start with a ., so I removed them.

Leaving them in also caused this error:

Module not found: Error: Exports field key should be relative path and start with "." (key: "node")

Otherwise the following error appears when importing from Strophe:
```
Module not found: Error: Package path . is not exported from package
```

From what I can tell looking at the documentation (https://webpack.js.org/guides/package-exports),
the previous values are invalid since they don't start with a `.`, so I removed them.

Leaving them in also caused this error:
```
Module not found: Error: Exports field key should be relative path and start with "." (key: "node")
```
@jcbrand jcbrand merged commit d4e9996 into master May 7, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant