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

Module not found: Error: Package path ./dist/pjax.esm.js is not exported from package #239

Open
Yahav opened this issue Nov 22, 2021 · 0 comments · May be fixed by #240
Open

Module not found: Error: Package path ./dist/pjax.esm.js is not exported from package #239

Yahav opened this issue Nov 22, 2021 · 0 comments · May be fixed by #240
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@Yahav
Copy link
Contributor

Yahav commented Nov 22, 2021

Describe the bug

After upgrading to Laravel Mix 6/PostCSS 8/Webpack 5.
When trying to comple i'm getting the following error:

ERROR in ./resources/js/services/sliphuaPjax.js 7:0-50
Module not found: Error: Package path ./dist/pjax.esm.js is not exported from package C:\projectName\node_modules\@sliphua\pjax (see exports field in C:\projectName\node_
modules\@sliphua\pjax\package.json)

At /resources/js/services/sliphuaPjax.js i simply import the package as stated at the docs:
import Pjax from '@sliphua/pjax/dist/pjax.esm.js

It used to work perfectly up until the point in which i've upgraded Laravel Mix/Webpack.

To reproduce

No response

Expected behavior

No response

Environment

- OS: Windows 10
- Browser: Not relevant
- Pjax: Latest

Anything else?

No response

Yahav added a commit to Yahav/Pjax that referenced this issue Nov 22, 2021
@Yahav Yahav linked a pull request Nov 22, 2021 that will close this issue
@PaperStrike PaperStrike added bug Something isn't working documentation Improvements or additions to documentation labels Nov 22, 2021
@PaperStrike PaperStrike linked a pull request Nov 22, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants