- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 11:20 PM
I am trying to run the command snc ui-component develop --open --port 3000 and it returns the below error.
node:21268) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\srava\NowCard\node_modules\@webpack-blocks\babel\package.json' of 'lib/index'. Please either fix that or report it to the module author
(node:21268) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\srava\NowCard\node_modules\@webpack-blocks\dev-server\package.json' of 'lib/index'. Please either fix that or report it
to the module author
(node:21268) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\srava\NowCard\node_modules\@webpack-blocks\extract-text\package.json' of 'lib/index'. Please either fix that or report it to the module author
(node:21268) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\srava\NowCard\node_modules\@webpack-blocks\postcss\package.json' of 'lib/index'. Please either fix that or report it to
the module author
(node:21268) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\srava\NowCard\node_modules\@webpack-blocks\sass\package.json' of 'lib/index'. Please either fix that or report it to the module author
(node:21268) [DEP0128] DeprecationWarning: Invalid 'main' field in 'C:\Users\srava\NowCard\node_modules\@webpack-blocks\typescript\package.json' of 'lib/index'. Please either fix that or report it
to the module author
TypeError: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (16688)
at Object.writeFileSync (node:fs:2164:5)
at C:\Users\srava\NowCard\node_modules\@servicenow\cli-pre-post-tasks\common\tasks\dev-server.js:23:637
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Promise.all (index 0)
[builder:builder-core:end:1216] Task: run develop:pre, Error: Command failed: cmd /d /s /c node node_modules/@servicenow/cli-component-archetype-dev/conf/develop/pre/run
[builder:builder-core:end:13736] Task: run develop:trace, Error: Command failed: cmd /d /s /c builder run develop:pre
Please help me in resolving this error.
Thanks.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 02:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-04-2023 11:29 PM
@Shasank Please help
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 12:39 AM
HI Sravan,
Can you share the following details:
1) Node version
2) "@servicenow/cli" package version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 02:27 AM
Node Version v17.9.1
Snc version
{
"extensions": {
"ui-component": "23.0.0"
},
"snc": "1.1.0"
}
Thanks,
Sravan,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-05-2023 02:29 AM
Node Version 17 is still not supported, can you check with node 14?