Closed taylorreece closed 1 year ago
Thanks for posting the issue. Let us investigate that and get back to you when we have more information
This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed.
This issue still affects us, and we're stuck on 1.33.0 until we can use the box SDK with webpack. Bumping to keep this open.
Hi @taylorreece , I'm closing this issue since box-node-sdk was not originally intended to be used in front-end applications, and we are not going to change this in the current version of the sdk.
However, we are intensively working on a new, refreshed version of our SDK, and we put our main emphasis on development there. So we are going to consider adding webpack support there.
👍 It's not for a frontend app, but for an application connector on the Prismatic platform (https://prismatic.io/docs/components/box/), but point taken. I'm excited for the refreshed version of the SDK!
Have a great holiday season!
If anyone else comes across this, it appears that you can safely add this to your webpack config to ignore the error:
optimization: {
sideEffects: false,
},
Description of the Issue
Hi Box team, I'm struggling to compile a project that includes
box-node-sdk
with webpack, and I'm looking to see if you have any guidance or insight.My project previously used
1.33.0
, which compiled fine. Any version after that (1.34.0
up to latest2.6.0
) fails to compile. I've put together a minimal repro here: https://github.com/taylorreece/box-webpack-issue . If you bring thebox-node-sdk
version down to1.33.0
, you cannpm install && npm run build
fine. If you have any version past1.33.0
, compilation fails with this error:It seems like it's related to the addition of the
proxy-agent
dependency, introduced in1.34.0
.I really appreciate any insight you have - thanks!
Steps to Reproduce
npm install && npm run build
Expected Behavior
Successful compiliation
Versions Used
Node SDK: 1.34.0 - 2.6.0 Node version: 16.15.1 NPM version: 8.11.0