Closed rfitoc closed 2 years ago
I found the problem.
I downgrade nodejs to 12.22.7 version and it works.
I know that it exists a version dependency between ionic, angular, typescript, npm plugins and node, but it would be great that the frameworks and scripts inform of these dependencies on execution time.
Thank you.
Best Regards.
I'm submitting a ... (check one with "x") [ x] bug report [ ] feature request
Current behavior:
.... [13:11:38] ionic-app-script task: "build" [13:11:38] TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined at Object.writeFileSync (fs.js:1521:5) at C:\Users\Ruben\Projectes\zinkolas-app-order-processing\node_modules\@ionic\app-scripts\dist\postprocess.js:48:20 at Array.forEach ()
at writeFilesToDisk (C:\Users\Ruben\Projectes\zinkolas-app-order-processing\node_modules\@ionic\app-scripts\dist\postprocess.js:36:11)
at postprocessWorker (C:\Users\Ruben\Projectes\zinkolas-app-order-processing\node_modules\@ionic\app-scripts\dist\postprocess.js:26:23)
at Object.postprocess (C:\Users\Ruben\Projectes\zinkolas-app-order-processing\node_modules\@ionic\app-scripts\dist\postprocess.js:13:12)
at C:\Users\Ruben\Projectes\zinkolas-app-order-processing\node_modules\@ionic\app-scripts\dist\build.js:131:30
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Expected behavior:
I hope that the build finish successfully.
Steps to reproduce:
ionic cordova build android --prod
or
npm run build --prod
--> ionic-app-scripts buildRelated code:
I have analized postprocess.js script and add the next code to print the possible problem:
The result is:
path: 'C:\Users\Ruben\Projectes\zinkolas-app-order-processing\node_modules\ionic-angular\config\mode-registry.js.map', content: undefined, timestamp: 1638360677667 C:\Users\Ruben\Projectes\zinkolas-app-order-processing\node_modules\ionic-angular\config\mode-registry.js.map C:\Users\Ruben\Projectes\zinkolas-app-order-processing.tmp\node_modules\ionic-angular\config\mode-registry.js.map
This file exists and i can load it with other script. I don't know if it happens with other files.
Other information:
ionic cordova build android
ornpm run build
--prod
is the problemIonic info: (run
ionic info
from a terminal/cmd prompt and paste output below):I don't know if it's important but i have own Webpack: