Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What steps are required to build this? #143

Closed
TheDiscordian opened this issue Feb 10, 2023 · 1 comment · Fixed by #145
Closed

What steps are required to build this? #143

TheDiscordian opened this issue Feb 10, 2023 · 1 comment · Fixed by #145

Comments

@TheDiscordian
Copy link

Heya, I was looking into possibly contributing to this repo as I'm working on similar things, but I can't seem to get it to build. Here's what I tried:

git clone [email protected]:web3-storage/ipfs-car.git
cd ipfs-car
npm install
npm run build

Everything is smooth sailing up until npm run build:

disco@MacBook-Air ipfs-car % npm run build

> [email protected] build
> npm run compile:esm && npm run compile:cjs


> [email protected] compile:esm
> ttsc -p tsconfig.json && echo '{ "type" : "module" }' > dist/esm/package.json

/Users/disco/Programming/ipfs-car/node_modules/ttypescript/lib/loadTypescript.js:29
    var _e = ts.versionMajorMinor.split('.'), major = _e[0], minor = _e[1];
                                  ^

TypeError: Cannot read properties of undefined (reading 'split')
    at Object.loadTypeScript (/Users/disco/Programming/ipfs-car/node_modules/ttypescript/lib/loadTypescript.js:29:35)
    at Object.<anonymous> (/Users/disco/Programming/ipfs-car/node_modules/ttypescript/lib/tsc.js:8:27)
    at Module._compile (node:internal/modules/cjs/loader:1246:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1300:10)
    at Module.load (node:internal/modules/cjs/loader:1103:32)
    at Module._load (node:internal/modules/cjs/loader:942:12)
    at Module.require (node:internal/modules/cjs/loader:1127:19)
    at require (node:internal/modules/helpers:112:18)
    at Object.<anonymous> (/Users/disco/Programming/ipfs-car/node_modules/ttypescript/bin/tsc:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1246:14)

Node.js v19.6.0

Should I be doing something differently?

disco@MacBook-Air ipfs-car % uname -a
Darwin MacBook-Air.local 22.1.0 Darwin Kernel Version 22.1.0: Sun Oct  9 20:15:52 PDT 2022; root:xnu-8792.41.9~2/RELEASE_ARM64_T8112 arm64
This was referenced Feb 15, 2023
@TheDiscordian
Copy link
Author

TheDiscordian commented Feb 23, 2023

Hey, I've updated to fdc46f5 and see no change when running npm run build, no change at all CC @vasco-santos. Is there something special I should be doing to get the build to succeed?

#144 builds BTW.

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 a pull request may close this issue.

1 participant