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
I started a starter react project with vite and got thoses errors below
I wanted to test it quickly in a frontend with mapbox and then put the logic in the back
To reproduce
pnpm create vite radars2 --template react-ts
pnpm install @radarlabs/s2
change app.tsx
pnpm dev
import'./App.css';importviteLogofrom'/vite.svg';import{useState}from'react';importreactLogofrom'./assets/react.svg';consts2=require('@radarlabs/s2');functionApp(){const[count,setCount]=useState(0);consts2LatLong=news2.LatLng(32.715651,-117.160542);constcellCoveringOptions={min: 6,max: 13,max_cells: 10};constcoveringCells=s2.RegionCoverer.getRadiusCovering(s2LatLong,10000,cellCoveringOptions);console.log(coveringCells.cellIds().map((cellId)=>cellId.token()));return(<><div><ahref="https://vitejs.dev"target="_blank"><imgsrc={viteLogo}className="logo"alt="Vite logo"/></a><ahref="https://react.dev"target="_blank"><imgsrc={reactLogo}className="logo react"alt="React logo"/></a></div><h1>Vite+React</h1><divclassName="card"><buttononClick={()=>setCount((count)=>count+1)}>countis{count}</button><p>Edit<code>src/App.tsx</code> and save to test HMR</p></div><pclassName="read-the-docs">ClickontheViteandReactlogostolearnmore</p></>);}exportdefaultApp;
[ERROR] Could not resolve "mock-aws-s3"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:43:28:
43 │ const AWSMock = require('mock-aws-s3');
╵ ~~~~~~~~~~~~~
You can mark the path "mock-aws-s3" as external to exclude it from the bundle, which will remove
this error. You can also surround this "require" call with a try/catch block to handle this
failure at run-time instead of bundle-time.
✘ [ERROR] Could not resolve "aws-sdk"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:76:22:
76 │ const AWS = require('aws-sdk');
╵ ~~~~~~~~~
You can mark the path "aws-sdk" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
✘ [ERROR] Could not resolve "nock"
node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js:112:23:
112 │ const nock = require('nock');
╵ ~~~~~~
You can mark the path "nock" as external to exclude it from the bundle, which will remove this
error. You can also surround this "require" call with a try/catch block to handle this failure at
run-time instead of bundle-time.
The text was updated successfully, but these errors were encountered:
Uncaught ReferenceError: process is not defined at module2.exports.get_mockS3Http (s3_setup.js:108:3) at node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js (node-pre-gyp.js:15:49) at __require2 (chunk-6NOISVLF.js?v=fa4056a4:16:50) at node_modules/@radarlabs/s2/index.js (index.js:2:16) at __require2 (chunk-6NOISVLF.js?v=fa4056a4:16:50) at index.js:6:18
i'm getting the same error when i deploy my sveltekit website ,any idea how to remove it please ? , my problem is i don't have any line that importing mock-aws-s3
Hello
I started a starter react project with vite and got thoses errors below
I wanted to test it quickly in a frontend with mapbox and then put the logic in the back
To reproduce
The text was updated successfully, but these errors were encountered: