DadUndead / ngx-scorm-wrapper-demo

This is a demo "course" with example of implementation for https://github.com/DadUndead/ngx-scorm-wrapper
4 stars 3 forks source link

scrom #1

Open suraj484 opened 3 years ago

suraj484 commented 3 years ago

after clone the code and run ng run build into terminal getting error message Failed to load external module @babel/register Requiring external module babel-register fs.js:45 } = primordials; ^

ReferenceError: primordials is not defined at fs.js:45:5 at req_ (G:\ngx-scorm-wrapper-demo\node_modules\natives\index.js:143:24) at Object.req [as require] (G:\ngx-scorm-wrapper-demo\node_modules\natives\index.js:55:10) at Object. (G:\ngx-scorm-wrapper-demo\node_modules\vinyl-fs\node_modules\graceful-fs\fs.js:1:37) at Module._compile (internal/modules/cjs/loader.js:1068:30) at Module._extensions..js (internal/modules/cjs/loader.js:1097:10) at Object.require.extensions. [as .js] (G:\ngx-scorm-wrapper-demo\node_modules\babel-register\lib\node.js:152:7) at Module.load (internal/modules/cjs/loader.js:933:32) at Function.Module._load (internal/modules/cjs/loader.js:774:14) at Module.require (internal/modules/cjs/loader.js:957:19) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ngx-scorm-wrapper-demo@0.0.1 manifest: gulp manifest npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ngx-scorm-wrapper-demo@0.0.1 manifest script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2021-07-05T05_54_19_575Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ngx-scorm-wrapper-demo@0.0.1 build: ng build && npm run manifest && npm run zip npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ngx-scorm-wrapper-demo@0.0.1 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2021-07-05T05_54_19_680Z-debug.log

Gajendrasinh commented 2 years ago

Hello

Any workaround in above issue, I am also getting same error.

ShehrozIrfan commented 1 year ago

Hey @suraj484 , @Gajendrasinh

I'm also working on the same thing, and got the same error, to resolve this I've to downgrade my node version to v10.24.1 and I got the error fixed.

Other than downgrading the version, I've not found any solution till now.