google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.59k stars 428 forks source link

Lock lines-and-columns to 1.1.6 #889

Closed somethingnew2-0 closed 2 years ago

somethingnew2-0 commented 2 years ago

lines-and-columns published a breaking change (1.1.7) which broke clasp https://github.com/eventualbuddha/lines-and-columns/pull/199 cc: @eventualbuddha

Run clasp login --status
  clasp login --status
  shell: /usr/bin/bash -e {0}
internal/modules/cjs/loader.js:929
  const err = new Error(`Cannot find module '${request}'`);
              ^

Error: Cannot find module '/usr/local/lib/node_modules/@google/clasp/node_modules/lines-and-columns/build/index.mjs'
    at createEsmNotFoundErr (internal/modules/cjs/loader.js:929:15)
    at finalizeEsmResolution (internal/modules/cjs/loader.js:922:15)
    at resolveExports (internal/modules/cjs/loader.js:450:14)
    at Function.Module._findPath (internal/modules/cjs/loader.js:490:31)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:888:27)
    at Function.Module._load (internal/modules/cjs/loader.js:746:27)
    at Module.require (internal/modules/cjs/loader.js:974:19)
    at require (internal/modules/cjs/helpers.js:93:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/@google/clasp/node_modules/parse-json/index.js:4:36)
    at Module._compile (internal/modules/cjs/loader.js:1085:14) {
  code: 'MODULE_NOT_FOUND',
  path: '/usr/local/lib/node_modules/@google/clasp/node_modules/lines-and-columns/package.json'
eventualbuddha commented 2 years ago

Yep, fixing. Sorry about that.

eventualbuddha commented 2 years ago

This should be fixed now in 1.1.9. You can either use that or lock to 1.1.6.

Dreaming-Codes commented 2 years ago

This solution should not be used, it is better to fix the problem than to continue using an old version.

eventualbuddha commented 2 years ago

If you want to move to the latest, just change it to v2.0.2 and use a named import. Nothing else changed.

Dreaming-Codes commented 2 years ago

If you want to move to the latest, just change it to v2.0.2 and use a named import. Nothing else changed.

Actually there is nothing to do here as it is a library that uses lines-and-columns and not google/clasp itself

somethingnew2-0 commented 2 years ago

Ah, that fixed it. Closing this out.