SyntaxError: Unexpected token '.' at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 5.5k
- Forks
- 374
- PR merge metrics
- No merged PRs in 30d
Description
env
google colab
steps
!apt update
!apt install -y npm ffmpeg build-essential libxi-dev libglu1-mesa-dev libglew-dev pkg-config
!npm i -g editly
!chmod +x /usr/local/bin/editly
!editly \
title:'My video' \
clip1.mov \
clip2.mov \
title:'My slideshow' \
img1.jpg \
img2.jpg \
title:'THE END' \
--fast \
--audio-file-path music.mp3
result
file:///usr/local/lib/node_modules/editly/node_modules/file-type/core.js:52
this.detectors = options?.customDetectors;
^
SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
question
how to make it work ?
thanks and best regards
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the command in Google Colab and start with the failing dependency at node_modules/file-type/core.js:52, where optional chaining triggers the syntax error. Check the runtime and installed editly dependency context; done means the documented editly command runs without this parsing failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100