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

Problem with module build? #87

Closed
dkadrios opened this issue Jun 4, 2021 · 2 comments
Closed

Problem with module build? #87

dkadrios opened this issue Jun 4, 2021 · 2 comments

Comments

@dkadrios
Copy link

dkadrios commented Jun 4, 2021

Version: 3.1.1

package.json has the line:

"module": "dist/index.module.js",

...but that file doesn't seem to exist in the built dist folder though (e.g. node_modules/react-shimmer/dist/index.module.js)

I'm encountering errors related to this while trying to build with Parcel.

@parcel/resolver-default: Could not load './dist/index.module.js' from module 'react-shimmer' found in package.json#module
/Users/username/git/project/node_modules/react-shimmer/package.json:22:13
  21 |   "main": "dist/index.js",
> 22 |   "module": "dist/index.module.js",
>    |             ^^^^^^^^^^^^^^^^^^^^^^ './dist/index.module.js' does not exist, did you mean './dist/index.d.ts'?'
  23 |   "source": "src/index.ts",
  24 |   "typings": "dist/index.d.ts",
@gokcan
Copy link
Owner

gokcan commented Jul 27, 2021

Hey @dkadrios, could you install the latest version of react-shimmer and validate your issue?

I have greatly improved the module build process: #90

@gokcan gokcan closed this as completed Jul 27, 2021
@gokcan gokcan reopened this Jul 27, 2021
@dkadrios
Copy link
Author

Sure, I can try it out later this week

@gokcan gokcan closed this as completed Aug 6, 2021
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

No branches or pull requests

2 participants