I’m just trying to create a simple survey form in Confluence by following these instructions “https://developer.atlassian.com/cloud/confluence/creating-a-form/”
I have performed all the steps mentioned in the page, when i try to run the app in my local machine command line, i’m getting the below error,
Note that i already have the latest Node.js version.
$ npm start
my-app@0.0.1 startnode --es-module-specifier-resolution=node app.js
node:internal/modules/run_main:129triggerUncaughtException(^
Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import 'C:\Users\patmut\form-tutorial\routes' is not supported resolving ES modules imported from C:\Users\patmut\form-tutorial\app.jsDid you mean to import "./routes/index.js"?at finalizeResolution (node:internal/modules/esm/resolve:259:11)at moduleResolve (node:internal/modules/esm/resolve:933:10)at defaultResolve (node:internal/modules/esm/resolve:1169:11)at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:542:12)at ModuleLoader.resolve (node:internal/modules/esm/loader:510:25)at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:239:38)at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:96:40)at link (node:internal/modules/esm/module_job:95:36) {code: 'ERR_UNSUPPORTED_DIR_IMPORT',url: 'file:///C:/Users/patmut/form-tutorial/routes'}
Node.js v20.18.0