Starting from the version v16.0.0-nightly20201030e8fe38f7cf I experience the issue with named import of Dropbox:
import{Dropbox}from"dropbox";^^^^^^^
SyntaxError: Namedexport'Dropbox'notfound.Therequestedmodule'dropbox'isaCommonJSmodule,whichmaynotsupportallmodule.exportsasnamedexports.CommonJSmodulescanalwaysbeimportedviathedefaultexport,forexampleusing:
importpkgfrom'dropbox';const{Dropbox}=pkg;atModuleJob._instantiate(node:internal/modules/esm/module_job:98:21)atasyncModuleJob.run(node:internal/modules/esm/module_job:143:5)atasyncLoader.import(node:internal/modules/esm/loader:165:24)atasyncObject.loadESM(node:internal/process/esm_loader:68:5)Processfinishedwithexitcode1If I rollback to the previous nightly build v16.0.0-nightly20201029bec918fb9b, then everything is perfectly working. Therefore, I assume that the issue can be in Node.js and not in the way I import the package or in Dropbox itself.
Can it be somehow related to the Node.js transition to ecmaVersion 2021?
v16.0.0-nightly20201030e8fe38f7cfStarting from the version
v16.0.0-nightly20201030e8fe38f7cfI experience the issue with named import ofDropbox:If I rollback to the previous nightly build
v16.0.0-nightly20201029bec918fb9b, then everything is perfectly working. Therefore, I assume that the issue can be in Node.js and not in the way I import the package or inDropboxitself.Can it be somehow related to the Node.js transition to ecmaVersion 2021?