Skip to content

Conversation

@horatiorosa
Copy link
Contributor

@horatiorosa horatiorosa commented Oct 28, 2025

changes to make streetscape more resilient and help avoid broken installs

  • changes to post install script to avoid breaking installs
  • point theme typing script to new thjeme-typings cjs file
  • updated vite config
  • regen the dist file

@netlify
Copy link

netlify bot commented Oct 28, 2025

Deploy Preview for meek-klepon-586e39 ready!

Name Link
🔨 Latest commit b7c8125
🔍 Latest deploy log https://app.netlify.com/projects/meek-klepon-586e39/deploys/690381cb6892650008c9468e
😎 Deploy Preview https://deploy-preview-113--meek-klepon-586e39.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@horatiorosa horatiorosa force-pushed the patch-branch-poc branch 3 times, most recently from 27df0b5 to 4843042 Compare October 30, 2025 15:01
…alls

 - changes to post install script to avoid breaking installs
 - point theme typing script to new thjeme-typings cjs file
 - updated vite config
 - regen the dist file
@horatiorosa
Copy link
Contributor Author

Documenting tail of error I encounter:

tail - n 80 "$(ls -t ~/.npm/_logs/*-debug-0.log | head -n1)" 
989 silly packumentCache corgi: https://registry.npmjs.org/@react-router%2fserve set size:667961 disposed:false 
990 info run @nycplanning/[email protected] postinstall node_modules/@nycplanning/streetscape npm run theme-typings 
991 info run [email protected] postinstall node_modules/bundle-n-require/node_modules/esbuild node install.js 
992 info run [email protected] postinstall { code: 0, signal: null } 
993 info run @nycplanning/[email protected] postinstall { code: 1, signal: null } 
994 verbose stack Error: command failed 
994 verbose stack at promiseSpawn (/Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) 
994 verbose stack at spawnWithShell (/Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) 
994 verbose stack at promiseSpawn (/Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) 
994 verbose stack at runScriptPkg (/Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:77:13) 
994 verbose stack at runScript (/Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:9:12) 
994 verbose stack at /Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:329:17 
994 verbose stack at run (/Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:67:22) 
994 verbose stack at /Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:84:9 
994 verbose stack at new Promise (<anonymous>) 
994 verbose stack at callLimit (/Users/horatiorosa/.nvm/versions/node/v20.12.2/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:35:69) 
995 verbose pkgid @nycplanning/[email protected] 
996 error code 1 
997 error path /Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/@nycplanning/streetscape 
998 error command failed 
999 error command sh -c npm run theme-typings 
1000 error > @nycplanning/[email protected] theme-typings 
1000 error > if [[ $PWD == *"node_modules"* ]]; then TOKENS_PATH="dist/index.d.ts"; else TOKENS_PATH="src/index.ts"; fi; chakra-cli tokens $TOKENS_PATH --strict-token-types --strict-component-types 
1000 error 
1000 error 
1000 error Chakra UI CLI v2.5.8 by Chakra UI 
1001 error ✘ [ERROR] Could not resolve "./theme" 
1001 error 
1001 error dist/index.d.ts:1:22: 
1001 error 1 │ import { theme } from './theme'; 
1001 error ╵ ~~~~~~~~~ 
1001 error 
1001 error ✘ [ERROR] Could not resolve "./StreetscapeProvider" 
1001 error 
1001 error dist/index.d.ts:2:36: 
1001 error 2 │ import { StreetscapeProvider } from './StreetscapeProvider'; 
1001 error ╵ ~~~~~~~~~~~~~~~~~~~~~~~ 
1001 error 
1001 error ✘ [ERROR] Could not resolve "./components" 
1001 error 
1001 error dist/index.d.ts:5:14: 
1001 error 5 │ export * from './components'; 
1001 error ╵ ~~~~~~~~~~~~~~ 
1001 error 
1001 error /Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:1467 
1001 error let error = new Error(text); 
1001 error ^ 
1001 error 
1001 error Error: Build failed with 3 errors: 
1001 error dist/index.d.ts:1:22: ERROR: Could not resolve "./theme" 
1001 error dist/index.d.ts:2:36: ERROR: Could not resolve "./StreetscapeProvider" 
1001 error dist/index.d.ts:5:14: ERROR: Could not resolve "./components" 
1001 error at failureErrorWithLog (/Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:1467:15) 
1001 error at /Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:926:25 
1001 error at /Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:878:52 
1001 error at buildResponseToResult (/Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:924:7) 
1001 error at /Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:951:16 
1001 error at responseCallbacks.<computed> (/Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:603:9) 
1001 error at handleIncomingPacket (/Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:658:12) 
1001 error at Socket.readFromStdout (/Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map/node_modules/bundle-n-require/node_modules/esbuild/lib/main.js:581:7) 
1001 error at Socket.emit (node:events:518:28) 
1001 error at addChunk (node:internal/streams/readable:559:12) { 1001 error errors: [Getter/Setter], 1001 error warnings: [Getter/Setter] 1001 error } 
1001 error 1001 error Node.js v20.12.2 
1002 silly unfinished npm timer reify 1761341858348 
1003 silly unfinished npm timer reify:build 1761341861225 
1004 silly unfinished npm timer build 1761341861226 
1005 silly unfinished npm timer build:deps 1761341861226 
1006 silly unfinished npm timer build:run:postinstall 1761341861234 
1007 silly unfinished npm timer build:run:postinstall:node_modules/@nycplanning/streetscape 1761341861234 
1008 verbose cwd /Users/horatiorosa/LocalDesktop/dcp-repos/ae-cp-map 
1009 verbose os Darwin 24.6.0 
1010 verbose node v20.12.2 
1011 verbose npm v10.8.2 
1012 verbose exit 1 
1013 verbose code 1 
1014 error A complete log of this run can be found in: /Users/horatiorosa/.npm/_logs/2025-10-24T21_37_38_051Z-debug-0.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants