Steps to reproduce
- Create a basic webapp using a build tool (eg/ webpack, parcel).
- Include the functionland/fula library. For example, try making the following change to
examples/doc-sync/fuludocs/package.json -
- "@functionland/fula": "../../../libraries/fula-client/src",
+ "@functionland/fula": "~0.6.0",
- Try to run the webapp
> npm install && npm start
Server running at http://localhost:1234
� Build failed.
@parcel/core: Failed to resolve '@functionland/fula' from './src/App.js'
/Users/asurty/POpen/fxland/fula/examples/doc-sync/fuludocs/src/App.js:5:38
4 | import { BrowserRouter as Router, useLocation } from 'react-router-dom';
> 5 | import { createClient, Status } from "@functionland/fula";
> | ^^^^^^^^^^^^^^^^^^^^
6 | import { ConnInfo } from "./components/ConnInfo";
7 | import { BoxConfig } from "./components/BoxConfig";
@parcel/resolver-default: Could not load './dist/index.js' from module '@functionland/fula' found in package.json#browser
/Users/asurty/POpen/fxland/fula/examples/doc-sync/fuludocs/node_modules/@functionland/fula/package.json:9:13
8 | "types": "dist/types/src/index.d.ts",
> 9 | "browser": "dist/index.js",
> | ^^^^^^^^^^^^^^^ './dist/index.js' does not exist, did you mean './dist/web/index.js'?'
10 | "scripts": {
11 | "build": "node scripts/build.js && tsc",
I believe the following change to libraries/fula-client/package.json would fix this (besides publishing a new version to npm) -
- "browser": "dist/index.js",·
+ "browser": "dist/web/index.js"
Steps to reproduce
examples/doc-sync/fuludocs/package.json-I believe the following change to
libraries/fula-client/package.jsonwould fix this (besides publishing a new version to npm) -