I was upgrade nuxt2.15 to nuxt-bridge
and run npm run dev
but there is error.
I tried to fix it, but I couldn't fix it.
I think this is error about #nuxt/babel-preset-app
but, I don't know what should i do.
#nuxt/babel-preset-app version is 2.15.8
this is error log message
[nuxt] [request error] Module parse failed: Identifier directly after number (68:14)
File was processed with these loaders:
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
* ./node_modules/cache-loader/dist/cjs.js
* ./node_modules/thread-loader/dist/cjs.js
* ./node_modules/babel-loader/lib/index.js
* ./node_modules/unplugin/dist/webpack/loaders/transform.js
You may need an additional loader to handle the result of these loaders.
| },
| maxPrice: {
> krw: 1_000_000,
| usd: 900
| }
at Object../conf.ts (./.nuxt/dist/server/server.js:10811:7)
at __webpack_require__ (./.nuxt/dist/server/server.js:27:30)
at Module../node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=nuxt%3Aimports-transform!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=nuxt-legacy-vue-transform!./node_modules/cache-loader/dist/cjs.js?!./node_modules/thread-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=nuxt-legacy-capi-key-transform!./layouts/error.vue?vue&type=script&lang=js& (./.nuxt/dist/server/server.js:30113:63)
at __webpack_require__ (./.nuxt/dist/server/server.js:27:30)
at Module../layouts/error.vue?vue&type=script&lang=js& (./.nuxt/dist/server/server.js:11046:578)
at __webpack_require__ (./.nuxt/dist/server/server.js:27:30)
at Module../layouts/error.vue (./.nuxt/dist/server/server.js:10998:93)
at __webpack_require__ (./.nuxt/dist/server/server.js:27:30)
at Module../.nuxt/index.js (./.nuxt/dist/server/server.js:907:76)
at __webpack_require__ (./.nuxt/dist/server/server.js:27:30)
Thank you!
Related
I am trying to get around this problem since yesterday but no matter what I do, I just cannot make redis to execute for my project. Here are the details in steps:
Step 1: I created new setup for redis using Elasticache in aws console, then I copied the url mentioned in primary endpoint e.g. my-redisxxxxx.cache.amazonaws.com. Thereafter, I assigned custom parameter group to this cluster from aws console where I have also configured the "notify-keyspace-events" in following way:
It still breaks even if I select default parameter group and don't assign this key.
Step 2: I made ssh connection to my nodejs EC2 instance and went to the environment variables file and assigned this url in this way:
REDIS_URI="my-redisxxxxx.cache.amazonaws.com"
REDIS_HOST="my-redisxxxxx.cache.amazonaws.com"
REDIS_PORT=6379
REDIS_INDEX=14
Now all other configurations are working fine in this manner, even redis works if I replace above url with one another existing cluster url. Only this particular new cluster that I made using elasticache seems to be having some problem.
As soon as I run node project using pm2, it hits the wall and throws this:
subscribed to channel ===> __keyevent#14__:expired
0|npm | events.js:377
0|npm | throw er; // Unhandled 'error' event
0|npm | ^
0|npm | ReplyError: ERR unknown command `config`, with args beginning with: `set`, `notify-keyspace-events`, `AKE`,
0|npm | at parseError (/usr/share/nginx/project-directory/node_modules/redis-parser/lib/parser.js:193:12)
0|npm | at parseType (/usr/share/nginx/project-directory/node_modules/redis-parser/lib/parser.js:303:14)
0|npm | Emitted 'error' event on RedisClient instance at:
0|npm | at Object.callbackOrEmit [as callback_or_emit] (/usr/share/nginx/project-directory/node_modules/redis/lib/utils.js:91:14)
0|npm | at RedisClient.return_error (/usr/share/nginx/project-directory/node_modules/redis/index.js:706:11)
0|npm | at JavascriptRedisParser.returnError (/usr/share/nginx/project-directory/node_modules/redis/index.js:196:18)
0|npm | at JavascriptRedisParser.execute (/usr/share/nginx/project-directory/node_modules/redis-parser/lib/parser.js:572:12)
0|npm | at Socket.<anonymous> (/usr/share/nginx/project-directory/node_modules/redis/index.js:274:27)
0|npm | at Socket.emit (events.js:400:28)
0|npm | at Socket.emit (domain.js:475:12)
0|npm | at addChunk (internal/streams/readable.js:293:12)
0|npm | at readableAddChunk (internal/streams/readable.js:267:9)
0|npm | at Socket.Readable.push (internal/streams/readable.js:206:10)
0|npm | at TCP.onStreamRead (internal/stream_base_commons.js:188:23) {
0|npm | command: 'CONFIG',
0|npm | args: [ 'set', 'notify-keyspace-events', 'AKE' ],
0|npm | code: 'ERR'
0|npm | }
0|npm | npm
0|npm | ERR! code ELIFECYCLE
0|npm | npm
0|npm | ERR! errno 1
0|npm | npm ERR!
I spent countless hours to understand this problem by reading documentation, only to find out that config command is restricted in aws elasticache. Also I found this answer here however not able to adapt it in my current code as I am creating redis connection like this (also I am not sure whether this is good solution):
const sub = redis.createClient(options);
export const subscribe = async (channel: string) => {
try {
sub.subscribe(channel);
console.log(`subscribed to channel ===> ${channel}`);
return {};
}
catch (error) {
console.log("Error while subscribing to a channel", error);
return {}
}
}
I am completely lost now as not able to think over what can solve this.
For those who are having similar problem, I was able to solve this by commenting out this line: this.client.config('set', 'notify-keyspace-events', 'AKE'); from connectRedisDB() function located inside redis.database.ts. I have commented this line because this parameter is already set in parameter group for redis from aws console, as state above in image.
i have migrated ember 3.16 to 3.24
I struck on ember test error. But the app works fine
Chrome 88.0 - [17 ms] - Unit | Service | preferences: it exists
---
actual: >
null
stack: >
TypeError: Cannot read property 'tagName' of undefined
at Class.setup (https://localhost:4221/assets/vendor.js:41026:134)
at Class.setupEventDispatcher (https://localhost:4221/assets/vendor.js:42523:18)
at Class._bootSync (https://localhost:4221/assets/vendor.js:42447:14)
at https://localhost:4221/assets/vendor.js:45731:77
at initializePromise (https://localhost:4221/assets/vendor.js:74537:7)
at new Promise (https://localhost:4221/assets/vendor.js:75038:35)
at Class.boot (https://localhost:4221/assets/vendor.js:45731:27)
at https://localhost:4221/assets/test-support.js:3656:65
at invokeCallback (https://localhost:4221/assets/vendor.js:74510:17)
at https://localhost:4221/assets/vendor.js:74575:26
message: >
Promise rejected before "it exists": Cannot read property 'tagName' of undefined
negative: >
false
browser log:
I am new to git and cypress. We also use circleCI. When I am trying to commit, I am getting these errors, and dont know how to fix them..are the errors in the files pointed out by "error"?
✖ prettier --write found some errors. Please fix them and try committing again.
.eslintrc.js 54ms
README.md 91ms
cypress.json 9ms
cypress/integration/SaveFormTest.js 49ms
cypress/integration/SaveFormTest_orig.js 20ms
cypress/support/commands.js 19ms
cypress_original.json 5ms
jest.config.js 7ms
src/api/requests.js 29ms
src/components/FileUploadTile/FileUploadTile.js 25ms
src/components/FileUploadTile/UploadButton/UploadButton.js 11ms
src/components/TopPanel/TopPanel.js 32ms
src/config/messages/en.js 9ms
src/constants/constants.js 13ms
src/containers/UserWidget/UserWidget.js 47ms
src/pages/LoginPage/LoginPage.js 30ms
src/pages/MainPage/MainPage.test.js 20ms
src/pages/TrainingQueuePages/TrainingQueueDashboardPage/ActionButtons/ActionButtons.js 15ms
src/pages/TrainingQueuePages/TrainingQueueDashboardPage/TrainingQueueList/RecordTile/RecordTile.js 18ms
src/pages/TrainingQueuePages/TrainingQueueDashboardPage/TrainingQueueList/RecordTile/RecordTile.test.js 17ms
src/store/trainingQueueDashboard/actions.js 17ms
src/store/trainingQueueDashboard/actions.test.js 34ms
src/store/trainingQueueDashboard/reducers.js 17ms
src/store/trainingQueueDashboard/reducers.test.js 32ms
src/store/user/constants.js 5ms
src/store/user/reducers.js 14ms
src/store/user/reducers.test.js 23ms
[error] cypress_old.json: SyntaxError: Unexpected token (1:7)
[error] > 1 | b0VIM 8.1��B^.�rrenukaalurkarRenukas-MBP~renukaalurkar/Documents/cypress_tests_renuka/KW-Offers-FE/cypress.jsonutf-8
[error] | ^
[error] 2 | U3210#"! Utpada������w\E$������} "defau}} "defaultCommandTimeout": 100000 }, "test_admin_pass":${TEST_ADMIN_PASS} "test_admin":${TEST_ADMIN}, "test_tc_pass":${TEST_TC_PASS}, "test_tc":${TEST_TC}, "test_pass":${TEST_PASS}, "test_user":${TEST_USER}, "password":${PASSWORD}, "user_name", "host":"https://app.kw-offers.master.kw-offers-dev.com/", "env":{{
husky > pre-commit hook failed (add --no-verify to bypass)
Running the iOS runscript causes the following error. Any advice?
This happens to the sample project
/bin/sh -c /Users/aryan.ghassemi/Library/Developer/Xcode/DerivedData/FrontPage-djowwaikrpnoghhjhlxriwamylsv/Build/Intermediates/FrontPage.build/Debug-iphonesimulator/FrontPage.build/Script-9F672F2E1DB0053600974171.sh
/Users/aryan.ghassemi/.nvm/versions/node/v4.2.6/lib/node_modules/apollo-codegen/lib/cli.js:41
const [name, value] = header.split(/\s*:\s*/);
^
SyntaxError: Unexpected token [
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
The version of Apollo.framework in your project requires apollo-codegen 0.15, but an unknown older version seems to be installed. Installing...
/Users/aryan.ghassemi/.nvm/versions/node/v4.2.6/bin/apollo-codegen -> /Users/aryan.ghassemi/.nvm/versions/node/v4.2.6/lib/node_modules/apollo-codegen/lib/cli.js
+ apollo-codegen#0.15.2
updated 1 package in 1.363s
++ exec apollo-codegen generate ./PostListViewController.graphql ./PostTableViewCell.graphql --schema schema.json --output API.swift
/Users/aryan.ghassemi/.nvm/versions/node/v4.2.6/lib/node_modules/apollo-codegen/lib/cli.js:41
const [name, value] = header.split(/\s*:\s*/);
^
SyntaxError: Unexpected token [
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:374:25)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:442:10)
at startup (node.js:136:18)
at node.js:966:3
Command /bin/sh failed with exit code 1
Script was running on an older version of node, updating to 6.9 fixed the issue
I am getting an error code that looks like this but don't really know why.
So up till this point i was using amazons end to end implementation of developer authentication. Everything seems to work but as soon as i try to use dynamodb to do something i get this error.
AWSiOSSDKv2 [Error] AWSCredentialsProvider.m line:528 | __40-[AWSCognitoCredentialsProvider refresh]_block_invoke352 | Unable to refresh. Error is [Error Domain=com.amazonaws.service.cognitoidentity.DeveloperAuthenticatedIdentityProvider Code=0 "(null)"]
The request failed. Error: [Error Domain=com.amazonaws.service.cognitoidentity.DeveloperAuthenticatedIdentityProvider Code=0 "(null)"]
Any help?
UPDATE 1: LOG OUTPUT FROM COGNITOSYNCDEMO
I removed out the information i thought should be private and replaced it with [redacted info]
2016-02-19 15:32:42.594 CognitoSyncDemo[2895:67542] initializing clients...
2016-02-19 15:32:43.028 CognitoSyncDemo[2895:67542] json: { "identityPoolId": "[redacted info]", "identityId": "[redacted info]", "token": "[redacted info]",}
2016-02-19 15:32:43.056 CognitoSyncDemo[2895:67542] Error in registering for remote notifications. Error: Error Domain=NSCocoaErrorDomain Code=3010 "REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION" UserInfo={NSLocalizedDescription=REMOTE_NOTIFICATION_SIMULATOR_NOT_SUPPORTED_NSERROR_DESCRIPTION}
2016-02-19 15:32:54.449 CognitoSyncDemo[2895:67542] AWSiOSSDKv2 [Debug] AWSCognitoSQLiteManager.m line:1455 | -[AWSCognitoSQLiteManager filePath] | Local database is: /Users/MrMacky/Library/Developer/CoreSimulator/Devices/29BB1E0D-538D-4167-9069-C02A0628F1B3/data/Containers/Data/Application/1A86E139-5484-4F29-A3FD-25F81DE055EB/Documents/CognitoData.sqlite3
2016-02-19 15:32:54.451 CognitoSyncDemo[2895:67542] AWSiOSSDKv2 [Debug] AWSCognitoSQLiteManager.m line:221 | __39-[AWSCognitoSQLiteManager getDatasets:]_block_invoke | query = 'SELECT Dataset, LastSyncCount, LastModified, ModifiedBy, CreationDate, DataStorage, RecordCount FROM CognitoMetadata WHERE IdentityId = ?'
2016-02-19 15:33:00.946 CognitoSyncDemo[2895:67542] json: { "identityPoolId": "[redacted info]", "identityId": "[redacted info]", "token": "[redacted info]",}
2016-02-19 15:33:00.947 CognitoSyncDemo[2895:67542] AWSiOSSDKv2 [Error] AWSCognitoService.m line:215 | __36-[AWSCognito refreshDatasetMetadata]_block_invoke180 | Unable to list datasets: Error Domain=com.amazon.cognito.AWSCognitoErrorDomain Code=-4000 "(null)"
Looking at the exception, it looks like you are trying to do push sync from the emulator. You cannot receive remote notifications on an Emulator.