Giter VIP home page Giter VIP logo

Comments (5)

fmartingr avatar fmartingr commented on June 11, 2024 2

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.

from mattermost-plugin-google-calendar.

fmartingr avatar fmartingr commented on June 11, 2024

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.

from mattermost-plugin-google-calendar.

itsmichaelk avatar itsmichaelk commented on June 11, 2024

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!

from mattermost-plugin-google-calendar.

itsmichaelk avatar itsmichaelk commented on June 11, 2024

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.

from mattermost-plugin-google-calendar.

itsmichaelk avatar itsmichaelk commented on June 11, 2024

Using nvm to change my node's version to 16.x and then run 'make dist' works just fine.

from mattermost-plugin-google-calendar.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.