diff --git a/examples/vanilla/README.md b/examples/vanilla/README.md index 27fe3a32a..9006dee1d 100644 --- a/examples/vanilla/README.md +++ b/examples/vanilla/README.md @@ -2,6 +2,8 @@ This example demonstrates how to connect to a robot. The example uses Vite + vanilla TypeScript and HTML. +> NOTE: This example does not work in Firefox. Please use Safari/Chrome/Chromium-based browser + ## Usage You must have a `.env` file in this directory with the following connection info which can be easily found in the TypeScript code sample for your machine. @@ -15,7 +17,7 @@ VITE_API_KEY="" Installing will build the TypeScript SDK, then you can run the example using Vite. ``` -cd examples/teleop-vanilla +cd examples/vanilla npm install npm run dev ``` @@ -26,5 +28,5 @@ Edit `src/main.ts` to change the robot logic being run. Edit `index.html` to cha This example assumes that you are working inside the Viam TypeScript SDK repository. If you want to use this example as a base for your project, make the following changes: -* Remove the `preinstall: ...` line from `package.json` -* Install the SDK: `npm install @viamrobotics/sdk@latest` +- Remove the `preinstall: ...` line from `package.json` +- Install the SDK: `npm install @viamrobotics/sdk@latest` diff --git a/package-lock.json b/package-lock.json index 377243251..b6310a508 100644 --- a/package-lock.json +++ b/package-lock.json @@ -526,22 +526,22 @@ "license": "(Apache-2.0 AND BSD-3-Clause)" }, "node_modules/@connectrpc/connect": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@connectrpc/connect/-/connect-1.6.0.tgz", - "integrity": "sha512-0WEnWOTtYbjlfi71cjiTle8FdmzdD4A6D9N/9Ky6KlsHB2hPvh2FQ3jpzzXma09rZBbJezHF9vvy29qZqeWtwQ==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@connectrpc/connect/-/connect-1.6.1.tgz", + "integrity": "sha512-KchMDNtU4CDTdkyf0qG7ugJ6qHTOR/aI7XebYn3OTCNagaDYWiZUVKgRgwH79yeMkpNgvEUaXSK7wKjaBK9b/Q==", "license": "Apache-2.0", "peerDependencies": { "@bufbuild/protobuf": "^1.10.0" } }, "node_modules/@connectrpc/connect-web": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@connectrpc/connect-web/-/connect-web-1.6.0.tgz", - "integrity": "sha512-dyjkdSgNKoUSjNyXOkD4r/d5d8gJxgR1q8zinmCZDFKgRKPFZdjzHLRvd4k4s1Fw54R7Zam5aMMj/t7B0/4CIA==", + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/@connectrpc/connect-web/-/connect-web-1.6.1.tgz", + "integrity": "sha512-GVfxQOmt3TtgTaKeXLS/EA2IHa3nHxwe2BCHT7X0Q/0hohM+nP5DDnIItGEjGrGdt3LTTqWqE4s70N4h+qIMlQ==", "license": "Apache-2.0", "peerDependencies": { "@bufbuild/protobuf": "^1.10.0", - "@connectrpc/connect": "1.6.0" + "@connectrpc/connect": "1.6.1" } }, "node_modules/@cspotcode/source-map-support": {