Trying to build (compile) an Angular 13 Ionic 6 solution after a migration to capacitor 4 (from capacitor 3) and a full npm cleanup and re-installation, Getting:
Error: Cannot find module './ponyfill.js'
Require stack:
- C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\symbol-observable\lib\index.js
- C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\#angular\cli\lib\init.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\morsa\Documents\IDrive-Sync\Dev Env\Projects\simplify-pilot\node_modules\symbol-observable\lib\index.js:7:17)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot\\node_modules\\symbol-observable\\lib\\index.js',
'C:\\Users\\morsa\\Documents\\IDrive-Sync\\Dev Env\\Projects\\simplify-pilot\\node_modules\\#angular\\cli\\lib\\init.js'
]
}
[ERROR] An error occurred while running subprocess ng.
ng.cmd run app:build exited with exit code 1.
I guess this symbol-observable is used in rxjs (at least).
I tried manually installing:
npm i ponyfill
This did install ponyfill 0.0.1
However, still getting the above error.
Any pointers on how to unstuck me? can't build the app...
Related
I am very new using discord's javascript
This is also my first time posting on stackoverflow!
Anyway
Here's the full error
Error: Cannot find module 'discord.js'
Require stack:
- /home/runner/multiple-purpose-discord-bot-like-carlbot/xp.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/home/runner/multiple-purpose-discord-bot-like-carlbot/xp.js:1:17)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [ '/home/runner/multiple-purpose-discord-bot-like-carlbot/xp.js' ]
}
To my limited knowledge, this is either i made a typo
OR some package is outdated, here's the full packages list
I also suspect that i incorrectly implemented the amethyste-api i am using, here's my code
It's in a config file, should've i put const mySecret = process.env['ame'] in the main file instead?, I do need it to be in the config for ease of access
npm install discord.js (manually through console/shell)
did do some stuff but stil didn't work
npm xp.js (manually through console/shell)
this is what i am supposed to run on start manually, that what gives the error
You could run the following commands one after the other:
`npm init`
and then
`npm i discord.js`
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'node:events'
Require stack:
- D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\node_modules\discord.js\src\client\BaseClient.js
- D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\node_modules\discord.js\src\index.js
- D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\index.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (D:\UserProfile\Users\Administrator\Desktop\misc\SerriedZ V.2\node_modules\discord.js\src\client\BaseClient.js:3:22)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'D:\\UserProfile\\Users\\Administrator\\Desktop\\misc\\SerriedZ V.2\\node_modules\\discord.js\\src\\client\\BaseClient.js',
'D:\\UserProfile\\Users\\Administrator\\Desktop\\misc\\SerriedZ V.2\\node_modules\\discord.js\\src\\index.js',
'D:\\UserProfile\\Users\\Administrator\\Desktop\\misc\\SerriedZ V.2\\index.js'
]
}
I'm getting this error while running node . to run the discord bot, I have tried to fix it by using npm i node:events but didn't seem to fix.
It might be because you are running an older version of Node.js. Try upgrading to a later version.
From Discord.js docs:
Node.js 16.6.0 or newer is required
https://discord.js.org/#/docs/discord.js/stable/general/welcome
While trying to create a frontend application to consume my django backend through the GraphQL API, I went into downloading node.js I'm getting that error while try to run npx #vue/cli create frontend --default on my git bash terminal. Below is what was being shown to me.
Error: Cannot find module '../util/utimes.js'
Require stack:
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\copy-sync\copy-sync.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\copy-sync\index.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\index.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\#vue\cli\lib\create.js
- C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\#vue\cli\bin\vue.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (C:\Users\Francisco Technics\AppData\Local\npm-cache\_npx\15e985e3d7a3258b\node_modules\fs-extra\lib\copy-sync\copy-sync.js:6:20)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\fs-extra\\lib\\copy-sync\\copy-sync.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\fs-extra\\lib\\copy-sync\\index.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\fs-extra\\lib\\index.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\#vue\\cli\\lib\\create.js',
'C:\\Users\\Francisco Technics\\AppData\\Local\\npm-cache\\_npx\\15e985e3d7a3258b\\node_modules\\#vue\\cli\\bin\\vue.js'
what can I do appease this bug, i totally no nothing about node.js
Good morning, first I would like to apologize for my English.
I am having a problem when creating a project to follow, I am taking the following steps.
STEP 1: npm install #vue/cli
STEP 2: vue create myproject
In the second step, I have the following error.
PS C:\Users\Bruno\Desktop\vue\VUE-CLI> vue create myproject
internal/modules/cjs/loader.js:883
throw err;
^
Error: Cannot find module 'lru-cache'
Require stack:
- C:\Users\Bruno\AppData\Roaming\npm\node_modules\#vue\cli\node_modules\#vue\cli-shared-utils\lib\env.js
- C:\Users\Bruno\AppData\Roaming\npm\node_modules\#vue\cli\node_modules\#vue\cli-shared-utils\index.js
- C:\Users\Bruno\AppData\Roaming\npm\node_modules\#vue\cli\bin\vue.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\Users\Bruno\AppData\Roaming\npm\node_modules\#vue\cli\node_modules\#vue\cli-shared-utils\lib\env.js:4:13)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'C:\\Users\\Bruno\\AppData\\Roaming\\npm\\node_modules\\#vue\\cli\\node_modules\\#vue\\cli-shared-utils\\lib\\env.js',
'C:\\Users\\Bruno\\AppData\\Roaming\\npm\\node_modules\\#vue\\cli\\node_modules\\#vue\\cli-shared-utils\\index.js',
'C:\\Users\\Bruno\\AppData\\Roaming\\npm\\node_modules\\#vue\\cli\\bin\\vue.js'
]
}
PS C:\Users\Bruno\Desktop\vue\VUE-CLI>
Try using npx maybe? Ensuring you have the latest updates
npx #vue/cli create my-project
Is the folder you intend to install the project into Vue/vue-cli? Don't know if anything n there is affecting it
Find Visual Studio Code application where I tried to run the file. Things look fine but it says cannot find module. Find my terminal output below along with screenshot in "Node Program"
F:\Git Clone\Node.js_From 31Oct2019\IBM-Developer\Node.js\Course\Unit-6>node server.js
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module 'sqlite3'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object.<anonymous> (F:\Git Clone\Node.js_From 31Oct2019\IBM-Developer\Node.js\Course\Unit-6\utils\utils.js:23:17)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
Node Program
You have to run npm i and then restart your application and vs code.
Install NPM by typing npm i and then restart your application