Oct 1, 11:04:23 AM: 99aee44c ERROR (node:8) Warning: Failed to load the ES module: /var/task/node_modules/chartjs-plugin-dragdata/dist/chartjs-plugin-dragdata.esm.js. Make sure to set "type": "module" in the nearest package.json file or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
Oct 1, 11:04:23 AM: 99aee44c ERROR /var/task/node_modules/chartjs-plugin-dragdata/dist/chartjs-plugin-dragdata.esm.js:7
import{getRelativePosition as t}from"chart.js/helpers";import{Chart as n}from"chart.js";var e={value:()=>{}};function i(){for(var t,n=0,e=arguments.length,i={};n<e;++n){if(!(t=arguments[n]+"")||t in i||/[\s.]/.test(t))throw
…
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1620:18)
at Module._compile (node:internal/modules/cjs/loader:1662:20)
at Object..js (node:internal/modules/cjs/loader:1820:10)
at Module.load (node:internal/modules/cjs/loader:1423:32)
at Function._load (node:internal/modules/cjs/loader:1246:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at cjsLoader (node:internal/modules/esm/translators:268:5)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:202:7)
at ModuleJob.run (node:internal/modules/esm/module_job:343:25),
status: 500,
statusText: undefined,
headers: undefined,
data: undefined,
body: undefined,
unhandled: true
}
Oct 1, 11:04:23 AM: 99aee44c ERROR (node:8) Warning: Failed to load the ES module: /var/task/node_modules/chartjs-plugin-dragdata/dist/chartjs-plugin-dragdata.esm.js. Make sure to set "type": "module" in the nearest package.json file or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
Oct 1, 11:04:23 AM: 99aee44c ERROR /var/task/node_modules/chartjs-plugin-dragdata/dist/chartjs-plugin-dragdata.esm.js:7
import{getRelativePosition as t}from"chart.js/helpers";import{Chart as n}from"chart.js";var e={value:()=>{}};function i(){for(var t,n=0,e=arguments.length,i={};n<e;++n){if(!(t=arguments[n]+"")||t in i||/[\s.]/.test(t))throw
…
SyntaxError: Cannot use import statement outside a module
at wrapSafe (node:internal/modules/cjs/loader:1620:18)
at Module._compile (node:internal/modules/cjs/loader:1662:20)
at Object..js (node:internal/modules/cjs/loader:1820:10)
at Module.load (node:internal/modules/cjs/loader:1423:32)
at Function._load (node:internal/modules/cjs/loader:1246:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at cjsLoader (node:internal/modules/esm/translators:268:5)
at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:202:7)
at ModuleJob.run (node:internal/modules/esm/module_job:343:25),
status: 500,
statusText: undefined,
headers: undefined,
data: undefined,
body: undefined,
unhandled: true
}