expo / snack

Expo Snack lets you run Expo in the browser.
https://snack.expo.dev
MIT License
358 stars 106 forks source link

Cannot run snack sdk example #358

Open huy-lv opened 1 year ago

huy-lv commented 1 year ago

Summary

Hello, I follow snack sdk document, but got this problem when I run yarn dev in snack-sdk/example folder. On http://localhost:3099/ it shown This page could not be found.

yarn run v1.22.17
$ next dev -p 3099
ready - started server on 0.0.0.0:3099, url: http://localhost:3099
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
event - compiled successfully
event - build page: /next/dist/pages/_error
wait  - compiling...
event - compiled successfully
event - build page: /
wait  - compiling...
warn  - ../../../node_modules/vm2/lib/resolver-compat.js
Critical dependency: the request of a dependency is an expression
info  - ready on http://localhost:3099
(node:3796) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

What platform(s) does this occur on?

Web

SDK Version

latest

Reproducible demo or steps to reproduce from a blank project

cd packages/snack-sdk yarn yarn build cd example yarn yarn dev (node 14.18.2)