Inprocess to setup local PWA locally, I created environment.local.ts file with local configuration and tried to start PWA using command ng s -c local and now getting below error.
Please suggest !
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:65-83 "export 'ɵɵdefineInjectable' was not found in
'#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:175-183 "export 'ɵɵinject' was not found in '#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:195-203 "export 'ɵɵinject' was not found in '#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:215-223 "export 'ɵɵinject' was not found in '#angular/core'
WARNING in
./node_modules/#wishtack/reactive-component-loader/dist/reactive-component-loader/fesm5/wishtack-reactive-component-loader.js
226:248-256 "export 'ɵɵinject' was not found in '#angular/core'
ERROR in ./src/styles.scss Module build failed (from
./node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from
./node_modules/sass-loader/lib/loader.js): Error: Node Sass does not
yet support your current environment: Windows 64-bit with Unsupported
runtime (79) For more information on which environments are supported
please see: https://github.com/sass/node-sass/releases/tag/v4.12.0
at module.exports (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\binding.js:13:13)
at Object. (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:10)
at Module.load (internal/modules/cjs/loader.js:914:32)
at Function.Module._load (internal/modules/cjs/loader.js:822:14)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.sassLoader (C:\ProgressiveWebApp\pwa\node_modules\sass-loader\lib\loader.js:46:72)
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModule.js:301:20
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:367:11
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:233:18
at runSyncOrAsync (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:143:3)
at iterateNormalLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:232:2)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:205:4
at VirtualFileSystemDecorator.readFile (C:\ProgressiveWebApp\pwa\node_modules#ngtools\webpack\src\virtual_file_system_decorator.js:39:13)
at processResource (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:202:11)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:158:10)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\loadLoader.js:47:3)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\loadLoader.js:47:3)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:165:10)
at C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:176:18
at loadLoader (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\loadLoader.js:47:3)
at iteratePitchingLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:169:2)
at runLoaders (C:\ProgressiveWebApp\pwa\node_modules\loader-runner\lib\LoaderRunner.js:365:2)
at NormalModule.doBuild (C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModule.js:280:3)
at NormalModule.build (C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModule.js:427:15)
at Compilation.buildModule (C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\Compilation.js:635:10)
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\Compilation.js:1021:12
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModuleFactory.js:405:6
at C:\ProgressiveWebApp\pwa\node_modules\webpack\lib\NormalModuleFactory.js:155:13
ERROR in
./src/app/shared/common/components/loading/loading.component.scss
Module build failed (from ./node_modules/sass-loader/lib/loader.js):
Error: Node Sass does not yet support your current environment:
Windows 64-bit with Unsupported runtime (79) For more information on
which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.12.0
at module.exports (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\binding.js:13:13)
at Object. (C:\ProgressiveWebApp\pwa\node_modules\node-sass\lib\index.js:14:35)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1103:10)
at Module.load (internal/modules/cjs/loader.js:914:32)
at Function.Module._load (internal/modules/cjs/loader.js:822:14)
at Module.require (internal/modules/cjs/loader.js:956:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object.sassLoader (C:\ProgressiveWebApp\pwa\node_modules\sass-loader\lib\loader.js:46:72)
ERROR in ./node_modules/#wishtack/rx-scavenger/dist/scavenger.js
Module not found: Error: Can't resolve 'core-js/es/map' in
'C:\ProgressiveWebApp\pwa\node_modules#wishtack\rx-scavenger\dist'
ERROR in ./node_modules/#wishtack/rx-scavenger/dist/scavenger.js
Module not found: Error: Can't resolve
'core-js/modules/es.array.includes' in
'C:\ProgressiveWebApp\pwa\node_modules#wishtack\rx-scavenger\dist'
Thanks,
Mayank
Check the versions of node and npm by using:
node --version
npm --version
Compare with the required versions declared in package.json in the root folder of the project:
"engines": {
"node": ">=10.16.0",
"npm": "~6.9.0"
},
Update node or npm if necessary.
Related
I have not found a solution to similar questions here ... hoping someone can decipher these error logs for me? Maybe my installation is corrupt?
Things that were working yesterday (and years before) but not today:
Does not open terminal from VS Code
Does not recognize my git folders
xdebug for PHP does not work
I verified that I have Node, NPM, and Git installed.
Here is the output:
Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node)
at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1812)
at Object.Module._extensions..node (internal/modules/cjs/loader.js:1250:18)
at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2039)
at Module.load (internal/modules/cjs/loader.js:1039:32)
at Module._load (internal/modules/cjs/loader.js:932:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1079:19)
at v (/usr/share/code/resources/app/out/vs/loader.js:3:12287)
at bindings (/usr/share/code/resources/app/node_modules.asar/bindings/bindings.js:112:48)
at Object.<anonymous> (/usr/share/code/resources/app/node_modules.asar/spdlog/index.js:3:35)
at Module.u._compile (/usr/share/code/resources/app/out/vs/loader.js:3:12841)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
at Module.load (internal/modules/cjs/loader.js:1039:32)
at Module._load (internal/modules/cjs/loader.js:932:14)
at Function.f._load (electron/js2c/asar_bundle.js:5:12738)
at Module.require (internal/modules/cjs/loader.js:1079:19)
at require (internal/modules/cjs/helpers.js:72:18)
at t (/usr/share/code/resources/app/out/vs/loader.js:4:101)
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:13249)
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:10262)
at c (/usr/share/code/resources/app/out/vs/loader.js:4:10314)
at Object.errorback (/usr/share/code/resources/app/out/vs/loader.js:4:10435)
at r.triggerErrorback (/usr/share/code/resources/app/out/vs/loader.js:3:10626)
at /usr/share/code/resources/app/out/vs/loader.js:3:10332
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:13266)
at r.load (/usr/share/code/resources/app/out/vs/loader.js:3:10262)
at c (/usr/share/code/resources/app/out/vs/loader.js:4:10314)
at r._loadModule (/usr/share/code/resources/app/out/vs/loader.js:4:10444)
at r._resolve (/usr/share/code/resources/app/out/vs/loader.js:5:452)
at r.defineModule (/usr/share/code/resources/app/out/vs/loader.js:4:6145)
at r._relativeRequire (/usr/share/code/resources/app/out/vs/loader.js:4:6831)
at n (/usr/share/code/resources/app/out/vs/loader.js:4:9420)
at m (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:41895)
at new Promise (<anonymous>)
at y (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:41875)
at S._createSpdLogLogger (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:42850)
at new S (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:28:42655)
at /usr/share/code/resources/app/out/vs/code/electron-main/main.js:57:1669
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async Y.startup (/usr/share/code/resources/app/out/vs/code/electron-main/main.js:57:1448) {
phase: 'loading',
moduleId: 'spdlog',
neededBy: [ '===anonymous3===' ]
}
[main 2021-02-19T21:47:36.128Z] update#setState idle
[main 2021-02-19T21:47:36.164Z] [storage state.vscdb] open(): Unable to open DB due to Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
(node:10240) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron. See https://github.com/electron/electron/issues/23506 for more information
[main 2021-02-19T21:47:36.305Z] [storage state.vscdb] open(): Unable to use backup due to Error: ENOENT: no such file or directory, unlink '/home/mdegalli/.config/Code/User/globalStorage/state.vscdb'
[main 2021-02-19T21:47:36.305Z] [storage] init(): Unable to init global storage due to Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
[main 2021-02-19T21:47:36.505Z] [uncaught exception in main]: Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
[main 2021-02-19T21:47:36.505Z] Error: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/share/code/resources/app/node_modules.asar.unpacked/vscode-sqlite3/build/Release/sqlite.node)
I rolled back my VS Code version to 1.52.1 and that solved the problem. I was going to accept the answer from another user here, but their post disappeared. Thanks to them for helping me solve this problem!
I am trying to upgrade from loopback 3 to loopback 4 using "mounting strategy" according to the documentation.
while trying to run the app using npm start, i am getting the following error:
node -r source-map-support/register .
Cannot start the application. { Error: Cannot find module
'../../node_modules/loopback-component-passport/lib/models/utils.js'
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. (C:\Data\myComp\app\myapp_docker\services\myapp_auth\lb3app\server\utils\providerUtils.js:2:15)
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)
at Module.require (internal/modules/cjs/loader.js:692:17)
at require (internal/modules/cjs/helpers.js:25:18)
at Object. (C:\Data\myComp\app\myapp_docker\services\fauth\lb3app\server\server.js:6:25)
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) code: 'MODULE_NOT_FOUND' } npm ERR! code ELIFECYCLE npm ERR! errno 1
I checked and i have the module in the node_modules directory and the utils.js file.
I had to search in all my app files for the string "node_modules" and I found that the relative path for that directory was incorrect. had to add one more "../" before the node_modules.
We are trying to implement Report State API at github openhab project.
We are using “actions-on-google” version “2.6.0”.
We have added below lines to openhab.js file
const {smarthome} = require('actions-on-google');
const app = smarthome({
});
Please find the below console output:
smartfueb_march_gmail_com#instance-1-ubuntu16:/home/smartfueb_march/openhab-google-assistant/functions$ gcloud beta functions deploy openhabGoogleAssistant --stage-bucket smart_test1 --trigger-http
Deploying function (may take a while - up to 2 minutes)...failed.
ERROR: (gcloud.beta.functions.deploy) OperationError: code=3, message=Function failed on loading user code. Error message: Code in file index.js can't be loaded.
Is there a syntax error in your code?
Detailed stack trace: TypeError: smarthome is not a function
at Object. (/user_code/openhab.js:23:13)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/user_code/index.js:18:17)
at Module._compile (module.js:577:32)
We could resolve the issue of smarthome is not function by using below commands and changing the package.json file to 2.6.0.
$ sudo npm install -g actions-on-google#latest
I am new to coding when I try to run this command
var commando = require("discord.js-commando");
var yourbot = new commando.client();
yourbot.login('MzI1MDI2MzQ4NzEwMjMyMDY2.DCSP8Q.Xyn-k0_DfnV4x3WsKtfDPBM0KfU');
and then I type node . I get this
SyntaxError: Unexpected identifier
at Object.exports.runInThisContext (vm.js:78:16)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/myusername/Desktop/Cyborg Pasta/node_modules/discord.js-commando/src/index.js:4:10)
at Module._compile (module.js:571:32)
Ians-MBP:Cyborg Pasta iankalman$ node .
/Users/iankalman/Desktop/Cyborg Pasta/node_modules/discord.js-commando/src/client.js:144
async setProvider(provider) {
^^^^^^^^^^^`
delete your node_modules folder and try reinstalling your modules with npm. Also, never post your bot token online you need to revoke that token.
I have the following files:
Cakefile:
require './test'
test.coffee:
console.log 'hi'
another_test.coffee:
require './test'
If I run cake, I get the following exception:
module.js:340
throw err;
^
Error: Cannot find module './test'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/Users/jose/Desktop/Cakefile:2:3)
at Object.<anonymous> (/Users/jose/Desktop/Cakefile:4:4)
at Module._compile (module.js:456:26)
However, if I run coffee another_test.coffee, I get this output:
hi
I installed node using brew and coffee-script using npm, and am using the following versions:
$ node -v
v0.10.24
$ npm -v
1.3.21
$ coffee -v
CoffeeScript version 1.7.1
Why can't Cakefile require test.coffee?
Solved by adding:
require 'coffee-script/register'
on top of Cakefile. See: https://stackoverflow.com/a/21678007/347915
Have you tried using an absolute path ? Try this instead :
require "#{__dirname}/test"