Open itsmichaelk opened 1 year ago
Can you share specific versions of node and npm so I can try to replicate in my M2 Pro machine? In my work M1 it works as expected, but npm/node versions are pinned around for some projects.
Hi @fmartingr ,
{
npm: '10.2.1',
node: '21.0.0',
acorn: '8.10.0',
ada: '2.6.10',
ares: '1.20.1',
base64: '0.5.0',
brotli: '1.1.0',
cjs_module_lexer: '1.2.2',
cldr: '43.1',
icu: '73.2',
llhttp: '9.1.2',
modules: '120',
napi: '9',
nghttp2: '1.57.0',
openssl: '3.1.3',
simdutf: '3.2.18',
tz: '2023c',
undici: '5.26.3',
unicode: '15.0',
uv: '1.46.0',
uvwasi: '0.0.19',
v8: '11.8.172.13-node.12',
zlib: '1.2.12'
}
Hope that helps!
We've just tested it on a macBook Air M1 with these versions:
{
npm: '10.2.0',
node: '18.18.2',
acorn: '8.10.0',
ada: '2.6.0',
ares: '1.19.1',
brotli: '1.0.9',
cldr: '43.1',
icu: '73.2',
llhttp: '6.0.11',
modules: '108',
napi: '9',
nghttp2: '1.57.0',
nghttp3: '0.7.0',
ngtcp2: '0.8.1',
openssl: '3.0.10+quic',
simdutf: '3.2.14',
tz: '2023c',
undici: '5.26.3',
unicode: '15.0',
uv: '1.44.2',
uvwasi: '0.0.18',
v8: '10.2.154.26-node.26',
zlib: '1.2.13.1-motley'
}
Doesn't work either.
Can confirm it works with this in M1 Max machine:
❯ npm version
{
npm: '8.5.0',
node: '16.14.2',
v8: '9.4.146.24-node.20',
...
}
Updating to latest (18.18.2) in the same machine ends up in the same error for me:
❯ npm version
{
npm: '9.8.1',
node: '18.18.2',
v8: '10.2.154.26-node.26',
...
}
❯ make dist
[...]
ssets by status 1.32 KiB [cached] 1 asset
./src/index.tsx 39 bytes [built] [code generated] [1 error]
ERROR in ./src/index.tsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: error:0308010C:digital envelope routines::unsupported
at new Hash (node:internal/crypto/hash:69:19)
at Object.createHash (node:crypto:133:10)
at filename (/private/var/folders/cv/mtjj2qh95ln7sz6l3wd2r8v80000gn/T/tmp.2kzRWN2W/mattermost-plugin-google-calendar/webapp/node_modules/babel-loader/lib/cache.js:94:23)
at /private/var/folders/cv/mtjj2qh95ln7sz6l3wd2r8v80000gn/T/tmp.2kzRWN2W/mattermost-plugin-google-calendar/webapp/node_modules/babel-loader/lib/cache.js:120:39
at Generator.next (<anonymous>)
at asyncGeneratorStep (/private/var/folders/cv/mtjj2qh95ln7sz6l3wd2r8v80000gn/T/tmp.2kzRWN2W/mattermost-plugin-google-calendar/webapp/node_modules/babel-loader/lib/cache.js:3:103)
at _next (/private/var/folders/cv/mtjj2qh95ln7sz6l3wd2r8v80000gn/T/tmp.2kzRWN2W/mattermost-plugin-google-calendar/webapp/node_modules/babel-loader/lib/cache.js:5:194)
at /private/var/folders/cv/mtjj2qh95ln7sz6l3wd2r8v80000gn/T/tmp.2kzRWN2W/mattermost-plugin-google-calendar/webapp/node_modules/babel-loader/lib/cache.js:5:364
at new Promise (<anonymous>)
at /private/var/folders/cv/mtjj2qh95ln7sz6l3wd2r8v80000gn/T/tmp.2kzRWN2W/mattermost-plugin-google-calendar/webapp/node_modules/babel-loader/lib/cache.js:5:97
webpack 5.75.0 compiled with 1 error in 480 ms
make: *** [webapp] Error 1
Potentially a dependency we need to upgrade for the latest version. In the meanwhile, try to use 16.20. You can setup different versions locally with nvm.
I will take a look at upgrading the dependencies to latest versions.
Using nvm to change my node's version to 16.x and then run 'make dist' works just fine.
Using an macBook Air M2, when I try to 'make dist' I get the following error: npm, gcc and go on newest version