First things first: I am not very familiar with node.js setups and the build tools. This might be a very trivial issue but google couldn’t help me here:
I am using cells of an observable notebook in a react application which is powered by the create-react-app (setup is already a couple of years old).
With version 4 of the observable runtime this all worked fine.
But since I upgraded the runtime version to 5 I get these compiler warnings (literally dozens, all looking the same but for the various libraries):
WARNING in ./node_modules/@observablehq/stdlib/src/ lazy ^.*.*$ strict namespace object @observablehq/stdlib/src/arquero.js Module not found: Error: Package path ./src/arquero.js is not exported from package /Users/markus/testproject/node_modules/@observablehq/stdlib (see exports field in /Users/markus/testproject/node_modules/@observablehq/stdlib/package.json)
The regular expression in the error suggests to me that it might be some problem with webpack, and arquero.js is likely just the first file it encountered in the package.
Since you mentioned that the project is several years old, I would recommend to bootstrap a new project skeleton with a recent version of create-react-app (be sure to read the disclaimer about previous installations) and migrate your project files over.