hiukim / mind-ar-js

Web Augmented Reality. Image Tracking, Face Tracking. Tensorflow.js
MIT License
2.22k stars 414 forks source link

npm run build command failing. Unable to build dist files. #415

Closed MunishChechi closed 8 months ago

MunishChechi commented 1 year ago

mind-ar@1.2.0 build /Users/munishchechi/Downloads/mind-ar-js-1.2.0 vite build --config vite.config.prod.js

internal/modules/cjs/loader.js:1172 throw new ERR_REQUIRE_ESM(filename, parentPath, packageJsonPath); ^

Error [ERR_REQUIRE_ESM]: Must use import to load ES Module: /mind-ar-js-1.2.0/node_modules/vite/bin/vite.js at Object.Module._extensions..js (internal/modules/cjs/loader.js:1172:13) at Module.load (internal/modules/cjs/loader.js:1000:32) at Function.Module._load (internal/modules/cjs/loader.js:899:14) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:74:12) at internal/main/run_main_module.js:18:47 { code: 'ERR_REQUIRE_ESM' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! mind-ar@1.2.0 build: vite build --config vite.config.prod.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mind-ar@1.2.0 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

hiukim commented 1 year ago

try latest version instead 1.2.3