"An error occurred while zipping the api artifacts" error trying to use shared library package
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
I have a node library which is shared between my function API and my client. I can run the static web app, including the API locally, but when I use GitHub actions, I get the following:
```
Zipping Api Artifacts
An error occurred while zipping the api artifacts: Could not find file '/bin/staticsites/-swa-oryx/api/node_modules/titancommon'.
This error may be due to a broken symbolic link. Please review the build logs for any warnings or errors
```
In the GitHub workflow yaml, I have a step which builds the common library, and a step to build the API (it's in typescript), which look like this:
```
- name: Build common Local Package
run: |
cd common
npm install
npm run build
- name: Build service API
run: |
cd service
npm install
npm run build
ls node_modules # output: this DOES include the titancommon library
```
The API's package.json includes the common library as such:
```
"dependencies": {
"titancommon": "file:../common"
```
This seems like a bug, but in the mean-time is there a work-around place to put a file based dependency like this so that it will be properly copied into the API deployment?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.