Closed ccammack closed 2 years ago
Sorry to see you're having difficulty... Building seems to work using the following versions on OSX:
doug@home moviemasher.js % npm -v
8.6.0
doug@home moviemasher.js % node -v
v16.14.2
From the log it looks like your npm is not correctly interpreting the -w (workspace) argument, which I think was introduced in version 7?
Another alternative might be to use the Docker image, though this hasn't been tested as extensively in the current version.
Thank you! I also had to manually run npm update typescript
, but it works now.
ccammack@rails:~/work/mm$ nvm install 16.14.2
[...]
ccammack@rails:~/work/mm$ npm -v
8.5.0
ccammack@rails:~/work/mm$ node -v
v16.14.2
ccammack@rails:~/work/mm$ npm run build
[...]
src/index.ts → dist/esm/index.js...
[!] (plugin Typescript) TS2339: Property 'add' does not exist on type 'FontFaceSet'.
src/Preloader/BrowserPreloaderClass.ts (106:26)
106 document.fonts.add(face)
~~~
[...]
ERROR: "build-core" exited with 1.
ccammack@rails:~/work/mm$ npm list typescript
@moviemasher/moviemasher-core@5.0.6 /home/ccammack/work/mm
├─┬ rollup-plugin-ts@2.0.5
│ ├─┬ compatfactory@0.0.12
│ │ └── typescript@4.5.5 deduped
│ ├─┬ ts-clone-node@0.3.30
│ │ └── typescript@4.5.5 deduped
│ └── typescript@4.5.5 deduped
├─┬ ts-jest@27.1.4
│ └── typescript@4.5.5 deduped
└── typescript@4.5.5
ccammack@rails:~/work/mm$ npm update typescript
[...]
ccammack@rails:~/work/mm$ npm list typescript
@moviemasher/moviemasher-core@5.0.6 /home/ccammack/work/mm
├─┬ @moviemasher/client-react@5.0.6 -> ./packages/client-react
│ └── typescript@4.5.5 deduped
├─┬ @moviemasher/moviemasher.js@5.0.6 -> ./packages/moviemasher.js
│ └── typescript@4.5.5 deduped
├─┬ @moviemasher/server-express@5.0.6 -> ./packages/server-express
│ └── typescript@4.5.5 deduped
├─┬ rollup-plugin-ts@2.0.5
│ ├─┬ compatfactory@0.0.12
│ │ └── typescript@4.5.5 deduped
│ ├─┬ ts-clone-node@0.3.30
│ │ └── typescript@4.5.5 deduped
│ └── typescript@4.5.5 deduped
├─┬ ts-jest@27.1.4
│ └── typescript@4.5.5 deduped
└── typescript@4.5.5
Super! Thanks for sharing your solution.
The npm run build command fails for me when following the instructions in Development. I'm sure I'm missing something obvious, but what?