You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
at callTranslator (node:internal/modules/esm/loader:436:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)
How to reproduce the behavior?
No response
Error Code
SyntaxError: Unexpected identifier 'assert'
Relevant log output
I can't find .icloud-photos-sync.log.These are the error messages that I get:file:///usr/local/lib/node_modules/icloud-photos-sync/bin/lib/resources/main.js:2import PackageData from '../../../package.json' assert { type: 'json' }; // eslint-disable-line ^^^^^^SyntaxError: Unexpected identifier 'assert' at compileSourceTextModule (node:internal/modules/esm/utils:337:16) at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18) at callTranslator (node:internal/modules/esm/loader:436:14) at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)
Seems I need to update the backtrace dependency - thanks for the catch.
On the error: I'm using node 18 - and I think the assert statements are an experimental feature of those. Can you try using node 18 to see if this resolves the issue?
Describe the issue
During installation on MacOS Sonoma with the current NodeJS version, I am getting the following:
iMac@iMac ~ % sudo npm install -g icloud-photos-sync
npm warn deprecated @backtrace-labs/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
npm warn deprecated @backtrace-labs/[email protected]: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.
Then, when I run the icloud-photos-sync, I getting the following error:
file:///usr/local/lib/node_modules/icloud-photos-sync/bin/lib/resources/main.js:2
import PackageData from '../../../package.json' assert { type: 'json' }; // eslint-disable-line
^^^^^^
SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:166:18)
at callTranslator (node:internal/modules/esm/loader:436:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:442:30)
How to reproduce the behavior?
No response
Error Code
SyntaxError: Unexpected identifier 'assert'
Relevant log output
Operating system
macOS Sonoma
Execution environment
Node.js v22.8.0
icloud-photos-sync version
latest
Checklist
The text was updated successfully, but these errors were encountered: