You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error occurs when creating a browserify bundle that has protobufjs as a dependency. To repro, unzip slyryd-test.zip, and run npm install and npm run browserify. Removing the following line in the protobuf.js package.json file fixes the issue:
"browser": "dist/protobuf.js",
Example error:
Error: Cannot find module '4' from 'C:\Users\slyryd\Test\slyryd-test\node_modules\protobufjs\dist'
at C:\Users\slyryd\Test\slyryd-test\node_modules\browser-resolve\node_modules\resolve\lib\async.js:46:17
at process (C:\Users\slyryd\Test\slyryd-test\node_modules\browser-resolve\node_modules\resolve\lib\async.js:173:43)
at ondir (C:\Users\slyryd\Test\slyryd-test\node_modules\browser-resolve\node_modules\resolve\lib\async.js:188:17)
at load (C:\Users\slyryd\Test\slyryd-test\node_modules\browser-resolve\node_modules\resolve\lib\async.js:69:43)
at onex (C:\Users\slyryd\Test\slyryd-test\node_modules\browser-resolve\node_modules\resolve\lib\async.js:92:31)
at C:\Users\slyryd\Test\slyryd-test\node_modules\browser-resolve\node_modules\resolve\lib\async.js:22:47
The text was updated successfully, but these errors were encountered:
According to the package browser field spec, the entry point should be specified, rather than the bundle file.
Removing the line will make it look at index.js by default. If you wanted, there might also be some more complex logic you could use to specify src/index.js, src/index-light.js, and src/index-minimal.js.
protobuf.js version: master (6.8.7 candidate)
An error occurs when creating a browserify bundle that has protobufjs as a dependency. To repro, unzip slyryd-test.zip, and run
npm install
andnpm run browserify
. Removing the following line in the protobuf.js package.json file fixes the issue:"browser": "dist/protobuf.js",
Example error:
The text was updated successfully, but these errors were encountered: