-
Notifications
You must be signed in to change notification settings - Fork 18
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
Cannot find module './preprocess.js' #81
Comments
It shows up for me in @colehpage note that it's only the CJS version that needs that file. If you switch to ESM you'll avoid that issue and get better performance |
Ahh that makes sense - thanks for the tip @benmccann ill give that a go then, was meaning to go the ESM route anyway, should have tried that first. |
Yeah, it is missing in the published version. @mihar-22 Weird though, because |
Rollup does not transform |
It is copied there during |
There wasn't a build step before and it wasn't added to the release command so I didn't realize it was required. Fixed in |
Thanks mate! Really appreciate the work on all this and especially the quick responses, it's a huge help. EDIT: I'm not sure if it's fixed in 2.1.4 I don't see preprocess.js being added in dist/ during the build yet, but I may just be tired so I'll take a look in the morning |
Thank you for the quick release, but I think @colehpage is right: preprocess.js seems to be still missing in 2.1.4. |
Here https://github.com/mihar-22/svelte-jester/blob/master/package.json#L43 |
yep also can confirm preprocess is still missing in 2.1.4. @mihar-22 |
According to https://docs.npmjs.com/cli/v7/commands/npm-publish#files-included-in-package, we need to add it to the |
Just reproduced in CI. Downgrading to 1.7 works fine. |
This was just fixed in #84 and should work when version 2.1.5 is released |
First off @mihar-22 @benmccann Thanks for the quick release of 2.1.3! And everyone else who got that through - much appreciated with the quick turnaround. This might be something obvious I'm missing but while the transform export issue has been solved I'm now getting an issue with the preprocess.js file which doesn't seem to exist or be copied into dist. I see that #71 added the command to copy to dist from src/preprocess.js but I'm not seeing it in the final build.
Is there something I need to make sure I'm doing to make this work? I know it's been noted that the fixes for 2.1.3 had been tested in a few places and were working so guessing it's something on my end. Any nudge in the right direction would be great. Thanks!
The text was updated successfully, but these errors were encountered: