-
Notifications
You must be signed in to change notification settings - Fork 416
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
Serverless: WARNING: Could not determine version of module xxxxx #805
Comments
Could you share your serverless configuration and packages.json? |
I'll enclose the important stuff. Everything that is not explicitly versioned inside subpackages package.json gets the empty string. Strucutre is;
Serverless config
serverless.webpack.config.js
|
I see you are using version 5.4.2, but what I merged isn't available in that release. It's on master actually and not yet part of a release. It'll be part of the upcoming 5.5.0. |
Ah ok! Missed that it wasn't included in that release. Reading the READme kinda gives the impression that it's a feature that's available for the latest version. Do you have any other ideas? When do you expect to release 5.5.0? |
In the coming days I think. |
@j0k3r Any updates on the planned release day? |
As soon as all PRs got merged. |
I've just released 5.5.0, can you give it a try? |
Will have a look tomorrow morning! |
It does not work unfortunately. Below is a description of the issue
This fix looked like the perfect fit for our issue, but unfortunately nothing really changed. It seems to find the ref to root node_modules, but does not produce any different output. |
still have the issue in latest 5.5.1 |
Hi @axelblomberg I cannot reproduce your issue. Can you share your Also the issue you reported is different from what #689 resolves. Your issue is The package.json at root level and package level won't be changed by serverless-webpack. If they have empty version info in them, I reckon you need to fix them first. |
Hi @chaoyangnz Would you please share more information? Thanks |
This is a Bug Report
Description
Error example in detail
Serverless: Invoke webpack:package
Serverless: WARNING: Could not determine version of module arrify
Hi. We have an issue where our root hoisted dependencies (using Lerna) cannot be resolved correctly when we bundle and webpack:package runs. This is causing the bundled package.json file to include referenced version as an empty string, see below.
"dependencies": {
"arrify": "",
}
The general issue with this is that dependencies are automatically resolved to latest version which can cause issues if there are breaking changes and so on.
I noticed that there were a version published 8 hours ago by @j0k3r where this functionality was included;
However, this did not seem to do the trick. Anyone with similar issues using monorepo, serverless and serverless-webpack?
Similar or dependent issue(s):
node_modules
relative dir #689Additional Data
The text was updated successfully, but these errors were encountered: