bun icon indicating copy to clipboard operation
bun copied to clipboard

macOS dev instructions - tests fail

Open vjpr opened this issue 3 years ago • 0 comments

Following instructions from here:

➜  bun (main) ([email protected]) (node:v18.3.0)$ (cd test/snippets && npm i)


added 117 packages, and audited 118 packages in 5s

12 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities
➜  bun (main) ([email protected]) (node:v18.3.0)$ (cd test/scripts && npm i)

npm WARN deprecated [email protected]: Version no longer supported. Upgrade to @latest

added 58 packages, and audited 59 packages in 1s

8 packages are looking for funding
  run `npm fund` for details

3 vulnerabilities (2 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.
➜  bun (main) ([email protected]) (node:v18.3.0)$ make test-dev-all

cd test/scripts && /Users/Vaughan/.bun/bin/bun install
bun install v0.1.4

 2 packages installed [443.00ms]
rm -rf test/bun.js/snapshots.debug.js
touch test/bun.js/snapshots.debug.js
echo "" >> test/bun.js/snapshots.debug.js; echo "// test/bun.js/module-require.snapshot.js" >> test/bun.js/snapshots.debug.js; /Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug build test/bun.js/module-require.snapshot.js --platform=bun >> test/bun.js/snapshots.debug.js; echo "" >> test/bun.js/snapshots.debug.js; echo "// test/bun.js/require-referenceerror.snapshot.js" >> test/bun.js/snapshots.debug.js; /Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug build test/bun.js/require-referenceerror.snapshot.js --platform=bun >> test/bun.js/snapshots.debug.js; echo "" >> test/bun.js/snapshots.debug.js; echo "// test/bun.js/tiny-typed-emitter.snapshot.js" >> test/bun.js/snapshots.debug.js; /Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug build test/bun.js/tiny-typed-emitter.snapshot.js --platform=bun >> test/bun.js/snapshots.debug.js;

Expr count:       153
Stmt count:       1
Binding count:    0
File Descriptors: 17 / 524288

---Tracing---
Resolve time:      1942958
Parsing time:      8342416
---Tracing--



Expr count:       86
Stmt count:       2
Binding count:    0
File Descriptors: 17 / 524288


error: Could not resolve: "uuid". Maybe you need to "bun install"?

import { v4 as uuidv4 } from "uuid";
                             ^
/Users/Vaughan/dev/fork/bun/test/bun.js/require-referenceerror.snapshot.js:4:30 82

---Tracing---
Resolve time:      332167
Parsing time:      2760791
---Tracing--



Expr count:       85
Stmt count:       3
Binding count:    1
File Descriptors: 17 / 524288


error: Could not resolve: "tiny-typed-emitter". Maybe you need to "bun install"?

import { TypedEmitter as TypedEmitter7 } from "tiny-typed-emitter";
                                              ^
/Users/Vaughan/dev/fork/bun/test/bun.js/tiny-typed-emitter.snapshot.js:5:47 164

---Tracing---
Resolve time:      329292
Parsing time:      834000
---Tracing--


rm -rf test/snippets/package-json-exports/node_modules || echo "";
cp -r test/snippets/package-json-exports/_node_modules_copy test/snippets/package-json-exports/node_modules || echo "";
killall bun-debug -9;
No matching processes belonging to you were found
make: [test-dev-with-hmr] Error 1 (ignored)
BUN_BIN=/Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug node test/scripts/browser.js
$ /Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug dev --origin=http://localhost:8080
Spawned
[3.00ms] bun!! v0.1.11_debug (86517990)


  Link: http://localhost:8080
        public/index.html


Content-type: application/zip
Comparing bun-darwin-aarch64-profile.zip vs bun-darwin-aarch64.zip
Content-type: application/zip
Comparing bun-darwin-aarch64.zip vs bun-darwin-aarch64.zip
Found Zip https://github.com/Jarred-Sumner/bun-releases-for-updater/releases/download/bun-v0.1.10/bun-darwin-aarch64.zip

bun v0.1.10 is out. Run bun upgrade to upgrade.
✅ /export-default-module-hot.js
[console.log] Live reload connected in 7.9 ms
✅ /multiple-var.js
[console.log] Live reload connected in 2 ms
✅ /package-json-utf8.js
[console.log] Live reload connected in 1.7 ms
✅ /caught-require.js
[console.log] Live reload connected in 2.1 ms
✅ /number-literal-bug.js
[console.log] Live reload connected in 1.7 ms
[console.log] Live reload connected in 2 ms
✅ /template-literal.js
✅ /optional-chain-with-function.js
[console.log] Live reload connected in 1.4 ms
✅ /jsx-entities.jsx
[console.log] Live reload connected in 15.5 ms
✅ /jsx-spacing.jsx
[console.log] Live reload connected in 2.2 ms
✅ /latin1-chars-in-regexp.js
[console.log] Live reload connected in 1.5 ms
[console.log] Live reload connected in 1.4 ms
✅ /react-context-value-func.tsx
✅ /custom-emotion-jsx/file.jsx
[console.log] Live reload connected in 15.4 ms
✅ /void-shouldnt-delete-call-expressions.js
[console.log] Live reload connected in 1.5 ms
✅ /styledcomponents-output.js
[console.log] Live reload connected in 15.9 ms


warn: "key" prop before a {...spread} is deprecated in JSX. Falling back to classic runtime.

      {...rest}
          ^
/Users/Vaughan/dev/fork/bun/test/snippets/spread_with_key.tsx:9:11 194
✅ /spread_with_key.tsx
[console.log] Live reload connected in 1.7 ms
✅ /code-simplification-neql-define.js
[console.log] Live reload connected in 1.5 ms
✅ /forbid-in-is-correct.js
[console.log] Live reload connected in 1.4 ms
✅ /array-args-with-default-values.js
[console.log] Live reload connected in 1 ms
✅ /package-json-exports/index.js
[console.log] Live reload connected in 1.6 ms
[console.log] Live reload connected in 1.8 ms
✅ /string-escapes.js
✅ /unicode-identifiers.js
[console.log] Live reload connected in 1.5 ms
✅ /lodash-regexp.js
[console.log] Live reload connected in 6.3 ms
✅ /tsx-fallback-rewrite-works.js
[console.log] Live reload connected in 1.4 ms
✅ /ts-fallback-rewrite-works.js
[console.log] Live reload connected in 1.8 ms
✅ /multiple-imports.js
[console.log] Live reload connected in 1.4 ms
✅ /global-is-remapped-to-globalThis.js
[console.log] Live reload connected in 1.2 ms
✅ /type-only-imports.ts
[console.log] Live reload connected in 1.6 ms
✅ /export.js
[console.log] Live reload connected in 1.4 ms
✅ /bundled-entry-point.js
[console.log] Live reload connected in 1.3 ms
✅ /cjs-transform-shouldnt-have-static-imports-in-cjs-function.js
[console.log] Live reload connected in 1.6 ms
✅ browser test passed
killall bun-debug -9;
DISABLE_HMR="DISABLE_HMR" BUN_BIN=/Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug node test/scripts/browser.js
$ /Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug dev --origin=http://localhost:8080 --disable-hmr
Spawned
[2.00ms] bun!! v0.1.11_debug (86517990)


  Link: http://localhost:8080
        public/index.html


✅ /export-default-module-hot.js
✅ /multiple-var.js
✅ /package-json-utf8.js
✅ /caught-require.js
✅ /number-literal-bug.js
✅ /template-literal.js
✅ /optional-chain-with-function.js
✅ /jsx-entities.jsx
✅ /jsx-spacing.jsx
✅ /latin1-chars-in-regexp.js
✅ /react-context-value-func.tsx
[console.info] %cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools font-weight:bold
✅ /custom-emotion-jsx/file.jsx
✅ /void-shouldnt-delete-call-expressions.js
[console.info] %cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools font-weight:bold
✅ /styledcomponents-output.js


warn: "key" prop before a {...spread} is deprecated in JSX. Falling back to classic runtime.

      {...rest}
          ^
/Users/Vaughan/dev/fork/bun/test/snippets/spread_with_key.tsx:9:11 194
✅ /spread_with_key.tsx
✅ /code-simplification-neql-define.js
✅ /forbid-in-is-correct.js
✅ /array-args-with-default-values.js
✅ /package-json-exports/index.js
✅ /string-escapes.js
✅ /unicode-identifiers.js
✅ /lodash-regexp.js
✅ /tsx-fallback-rewrite-works.js
✅ /ts-fallback-rewrite-works.js
✅ /multiple-imports.js
✅ /global-is-remapped-to-globalThis.js
✅ /type-only-imports.ts
✅ /export.js
✅ /bundled-entry-point.js
✅ /cjs-transform-shouldnt-have-static-imports-in-cjs-function.js
✅ browser test passed
BUN_BIN=/Users/Vaughan/dev/fork/bun/packages/debug-bun-darwin-aarch64//bun-debug bash test/apps/bun-create-next.sh
[package.json] Detected React - added "react-refresh"
[package.json] Detected Next.js

$ bun install
bun install v0.1.11_debug
  🔍 Resolving [1/8]
[74.00ms] git
  🔍 @next/swc-android-arm-eabi [99/99]
error: package "@next/swc-android-arm-eabi" not found registry.npmjs.org/@next/swc-android-arm-eabi 404
error: @next/[email protected] failed to resolve

[10.63s] bun install


$ bun bun --use next
ResolveError can't find framework: "next".

Maybe it's not installed? Try running this:

   bun add -d bun-framework-next
   bun bun --use next

[11.65s] bun create next

Come hang out in bun's Discord: https://bun.sh/discord

-----

A local git repository was created for you and dependencies were installed automatically.

Created next project successfully

# When dependencies change, run this to update node_modules.bun:

  bun bun --use next

# To get started, run:

  cd ../../../../../tmp/next-app
  bun dev

ResolveError can't find framework: "next".

Maybe it's not installed? Try running this:

   bun add -d bun-framework-next
   bun bun --use next
curl: (7) Failed to connect to localhost port 8087: Connection refused
make: *** [test-dev-create-next] Error 7

vjpr avatar Sep 01 '22 15:09 vjpr