Closed songsh closed 15 hours ago
To resolve the error "Can't add '@types/prop-types': invalid package version undefined" when building the Docker image, you need to ensure that the @types/prop-types
package is correctly specified in your package.json
file. Based on the provided package.json
content, the @types/prop-types
package is not listed in the dependencies or devDependencies.
You can add the @types/prop-types
package with a valid version to the devDependencies
section of your package.json
file. Here is how you can do it:
{
"devDependencies": {
"@types/prop-types": "^15.7.5",
// ... other devDependencies
}
}
After adding the package, try building the Docker image again using the command:
docker build -t langgenius/dify-web .
This should resolve the error related to the invalid package version [1].
To continue talking to Dosu, mention @dosu.
Self Checks
Dify version
0.6.9
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
docker build -t langgenius/dify-web .
✔️ Expected Behavior
build success
❌ Actual Behavior
=> ERROR [packages 5/5] RUN yarn install --frozen-lockfile --registry https://registry.npmmirror.com/ 1.0s