Skip to content

Instantly share code, notes, and snippets.

@tab1293
Created September 22, 2022 15:44
Show Gist options
  • Save tab1293/c308ee12930915727dd17d0e307e7eec to your computer and use it in GitHub Desktop.
Save tab1293/c308ee12930915727dd17d0e307e7eec to your computer and use it in GitHub Desktop.
yarn dev:web error when linking ion-sdk-js without tsconfig update
exports is not defined
ReferenceError: exports is not defined
at eval (webpack-internal:///../../../ion-sdk-js/lib/client.js:70:1)
at ../../../ion-sdk-js/lib/client.js (https://localhost:3001/_next/static/chunks/pages_room_Room_tsx.js:664:1)
at options.factory (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:655:31)
at __webpack_require__ (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:37:33)
at fn (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:324:21)
at eval (webpack-internal:///../../../ion-sdk-js/lib/index.js:6:16)
at ../../../ion-sdk-js/lib/index.js (https://localhost:3001/_next/static/chunks/pages_room_Room_tsx.js:675:1)
at options.factory (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:655:31)
at __webpack_require__ (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:37:33)
at fn (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:324:21)
at eval (webpack-internal:///../../packages/room-client/participant.ts:9:85)
at ../../packages/room-client/participant.ts (https://localhost:3001/_next/static/chunks/pages_room_Room_tsx.js:1082:1)
at options.factory (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:655:31)
at __webpack_require__ (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:37:33)
at fn (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:324:21)
at eval (webpack-internal:///./pages/room/useRoom.ts:7:91)
at ./pages/room/useRoom.ts (https://localhost:3001/_next/static/chunks/pages_room_Room_tsx.js:1005:1)
at options.factory (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:655:31)
at __webpack_require__ (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:37:33)
at fn (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:324:21)
at eval (webpack-internal:///./pages/room/Room.tsx:11:66)
at ./pages/room/Room.tsx (https://localhost:3001/_next/static/chunks/pages_room_Room_tsx.js:917:1)
at options.factory (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:655:31)
at __webpack_require__ (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:37:33)
at Function.fn (https://localhost:3001/_next/static/chunks/webpack.js?ts=1663861436114:324:21)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment