Closed butsuntig closed 1 year ago
Or please guide me to fix this issue.
@bigsuntat Hi! Can you tell me some info about project? Your node version, tsconfig and package.json ? btw try to use e3kit/node for project, this should work in browser.
@azirb
node v8.11.4
meteor 1.8.0.2
package.json
{
"name": "Rocket.Chat",
"description": "The Ultimate Open Source WebChat Platform",
"version": "1.3.3",
"author": {
"name": "Rocket.Chat",
"url": "https://rocket.chat/"
},
"contributors": [
{
"name": "Aaron Ogle",
"email": "aaron.ogle@rocket.chat"
},
{
"name": "Bradley Hilton",
"email": "bradley.hilton@rocket.chat"
},
{
"name": "Diego Sampaio",
"email": "diego.sampaio@rocket.chat"
},
{
"name": "Gabriel Engel",
"email": "gabriel.engel@rocket.chat"
},
{
"name": "Guilherme Gazzo",
"email": "guilherme.gazzo@rocket.chat"
},
{
"name": "Karl Prieb",
"email": "karl.priebk@rocket.chat"
},
{
"name": "Marcelo Schmidt",
"email": "marcelo.schmidt@rocket.chat"
},
{
"name": "Rodrigo Nascimento",
"email": "rodrigo.nascimento@rocket.chat"
},
{
"name": "Sing Li",
"email": "sing.li@rocket.chat"
}
],
"mocha": {
"tests": [
"app//*.tests.js"
],
"files": [
"app/*/.mocks.js",
"app//*.js",
"!app/*/.tests.js"
]
},
"keywords": [
"rocketchat",
"rocket",
"chat"
],
"scripts": {
"start": "meteor",
"debug": "meteor run --inspect",
"debug-brk": "meteor run --inspect-brk",
"lint": "meteor npm run stylelint && meteor npm run jslint",
"jslint": "eslint .",
"stylelint": "stylelint \"app/*/.css\"",
"test": "node .scripts/start.js",
"deploy": "npm run build && pm2 startOrRestart pm2.json",
"chimp-path": "chimp tests/chimp-config.js --path=$CHIMP_PATH",
"chimp-watch": "chimp --ddp=http://localhost:3000 --watch --mocha --path=tests/end-to-end",
"chimp-test": "chimp tests/chimp-config.js",
"postinstall": "node .scripts/npm-postinstall.js",
"testunit-watch": "mocha --watch --opts ./mocha.opts \"node -e \"console.log(require('./package.json').mocha.tests.join(' '))\"
\"",
"coverage": "nyc -r html mocha --opts ./mocha.opts \"node -e \"console.log(require('./package.json').mocha.tests.join(' '))\"
\"",
"testunit": "mocha --opts ./mocha.opts \"node -e \"console.log(require('./package.json').mocha.tests.join(' '))\"
\"",
"translation-diff": "node .scripts/translationDiff.js",
"translation-fix-order": "node .scripts/fix-i18n.js",
"version": "node .scripts/version.js",
"set-version": "node .scripts/set-version.js",
"release": "meteor npm run set-version --silent"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/RocketChat/Rocket.Chat.git"
},
"bugs": {
"url": "https://github.com/RocketChat/Rocket.Chat/issues",
"email": "support@rocket.chat"
},
"devDependencies": {
"@octokit/rest": "^16.1.0",
"@rocket.chat/eslint-config": "^0.3.0",
"acorn": "^6.0.7",
"autoprefixer": "^9.4.1",
"babel-eslint": "^10.0.1",
"babel-mocha-es6-compiler": "^0.1.0",
"babel-plugin-array-includes": "^2.0.3",
"chai": "^3.5.0",
"chai-datetime": "^1.5.0",
"chimp": "^0.51.1",
"emojione-assets": "^4.5.0",
"eslint": "^5.9.0",
"fast-glob": "^2.2.6",
"husky": "^1.2.0",
"mocha": "^5.2.0",
"mock-require": "^3.0.2",
"node-sprite-generator": "^0.10.2",
"mongo-unit": "^1.4.4",
"postcss": "^7.0.6",
"postcss-custom-properties": "^8.0.9",
"postcss-easy-import": "^3.0.0",
"postcss-import": "^12.0.1",
"postcss-load-config": "^2.0.0",
"postcss-media-minmax": "^4.0.0",
"postcss-nested": "^4.1.0",
"postcss-selector-not": "^4.0.0",
"progress": "^2.0.2",
"proxyquire": "^2.1.0",
"simple-git": "^1.107.0",
"stylelint": "^9.9.0",
"stylelint-order": "^2.0.0",
"supertest": "^3.3.0",
"webpack": "^4.29.3"
},
"dependencies": {
"@accounts/graphql-api": "^0.2.3",
"@accounts/mongo": "0.0.12",
"@accounts/server": "0.0.18",
"@babel/runtime": "^7.2.0",
"@google-cloud/language": "^2.0.0",
"@google-cloud/storage": "^2.3.1",
"@google-cloud/vision": "^0.23.0",
"@rocket.chat/apps-engine": "^1.5.2",
"@slack/client": "^4.8.0",
"adm-zip": "^0.4.13",
"apollo-server-express": "^1.3.6",
"archiver": "^3.0.0",
"arraybuffer-to-string": "^1.0.2",
"atlassian-crowd": "^0.5.0",
"autolinker": "^1.8.1",
"aws-sdk": "^2.368.0",
"bad-words": "^3.0.2",
"bcrypt": "^3.0.2",
"blockstack": "18.1.0",
"body-parser": "1.18.3",
"bson": "^4.0.0",
"bugsnag": "^2.4.3",
"bunyan": "^1.8.12",
"busboy": "^0.2.14",
"bytebuffer": "5.0.1",
"cas": "https://github.com/kcbanner/node-cas/tarball/fcd27dad333223b3b75a048bce27973fb3ca0f62",
"chart.js": "^2.7.3",
"clipboard": "^2.0.4",
"codemirror": "^5.42.0",
"coffeescript": "^2.3.2",
"connect": "^3.6.6",
"core-js": "^2.5.7",
"cors": "^2.8.4",
"csv-parse": "^4.0.1",
"emailreplyparser": "^0.0.5",
"emojione": "^4.5.0",
"express": "^4.16.4",
"express-session": "^1.15.4",
"fibers": "^3.1.1",
"file-type": "^10.6.0",
"filesize": "^3.6.1",
"googleapis": "^25.0.0",
"grant-express": "^3.8.0",
"grapheme-splitter": "^1.0.4",
"graphql": "^0.13.2",
"graphql-subscriptions": "^0.5.8",
"graphql-tools": "^3.0.2",
"gridfs-stream": "^1.1.1",
"he": "^1.2.0",
"highlight.js": "^9.13.1",
"iconv-lite": "^0.4.24",
"image-size": "^0.6.3",
"imap": "^0.8.19",
"ip-range-check": "^0.0.2",
"jquery": "^3.3.1",
"jschardet": "^1.6.0",
"juice": "^5.2.0",
"katex": "^0.9.0",
"ldap-escape": "^2.0.1",
"ldapjs": "^1.0.2",
"less": "https://github.com/meteor/less.js/tarball/8130849eb3d7f0ecf0ca8d0af7c4207b0442e3f6",
"less-plugin-autoprefix": "^2.0.0",
"limax": "^1.7.0",
"localforage": "^1.7.3",
"lodash.clonedeep": "^4.5.0",
"lodash.property": "^4.4.2",
"lru-cache": "^5.1.1",
"mailparser": "^2.4.3",
"marked": "^0.6.1",
"mem": "4.1.0",
"merge-graphql-schemas": "^1.5.2",
"meteor-node-stubs": "^0.4.1",
"mime-db": "^1.40.0",
"mime-type": "^3.0.7",
"mkdirp": "^0.5.1",
"moment": "^2.22.2",
"moment-timezone": "^0.5.23",
"node-dogstatsd": "^0.0.7",
"node-rsa": "^1.0.5",
"object-path": "^0.11.4",
"pdfjs-dist": "^2.0.943",
"photoswipe": "^4.1.3",
"poplib": "^0.1.7",
"prom-client": "^11.2.0",
"querystring": "^0.2.0",
"queue-fifo": "^0.2.5",
"redis": "^2.8.0",
"semver": "^5.6.0",
"sharp": "^0.22.1",
"speakeasy": "^2.0.0",
"stream-buffers": "^3.0.2",
"subscriptions-transport-ws": "^0.9.11",
"tar-stream": "^1.6.2",
"toastr": "^2.1.4",
"turndown": "^5.0.1",
"twilio": "^3.25.0",
"twit": "^2.2.11",
"ua-parser-js": "^0.7.19",
"underscore": "^1.9.1",
"underscore.string": "^3.3.5",
"url-polyfill": "^1.1.5",
"uuid": "^3.3.2",
"webdav": "^2.0.0",
"wolfy87-eventemitter": "^5.2.5",
"xml-crypto": "^1.0.2",
"xml-encryption": "0.11.2",
"xml2js": "0.4.19",
"xmlbuilder": "^10.1.1",
"xmldom": "^0.1.27",
"yaqrcode": "^0.2.1"
},
"meteor": {
"mainModule": {
"client": "client/main.js",
"server": "server/main.js"
}
},
"husky": {
"hooks": {
"pre-push": "meteor npm run lint && meteor npm run testunit"
}
},
"houston": {
"updateFiles": [
"package.json",
".travis/snap.sh",
".circleci/snap.sh",
".circleci/update-releases.sh",
".docker/Dockerfile",
".docker/Dockerfile.rhel",
"app/utils/rocketchat.info"
]
}
}
@bigsuntat Hello! Release fix in 2.5.2 release, pls install and feedback to us! Ty for Issue
@azirb im facing the following issue while trying to use e3 kit browser.
I did try to upgrade to latest version, still got the same error.
@manoharc1999 Hello! Ok check this, btw what node version do u use ?
node: 14.20.1 npm: 6.14.17
Hello again @manoharc1999 ! Fix this error in 2.5.4 version! Try it now and give some feedback! Thanks for reporting!
Closing the ticket as fixed. Please create a new one if there are any more issues
I try to use https://unpkg.com/@virgilsecurity/e3kit-browser@2.5.1/dist/browser.umd.js to encode the message and i got error as in the picture
and detail
So I researched to find out if anyone got this error message and found that
https://stackdiary.com/guides/referenceerror-require-is-not-defined/
in the next version or can you fix this issue bug to use something else instead of require
Thank you very much