Git Product home page Git Product logo

Comments (14)

benkaiser avatar benkaiser commented on July 20, 2024

Hey @Orangeskai,

You can indeed self-host. You may need some tweaks, because the domain name is scoped to only localhost or next.kaiserapps.com (the one I host for everyone's use).

What domain are you using?

Also are you following the docker-compose from the README?

from stretto.

Orangeskai avatar Orangeskai commented on July 20, 2024

yes i followed the readme

ohh so i need to build my own extension and put my domain ????
and is there a way to compile it ? rather than using npm run dev ?

and i get this

[email protected] dev /root/stretto
./node_modules/nodemon/bin/nodemon.js index.js & npm run webpack -- --watch

[email protected] webpack /root/stretto
./node_modules/webpack/bin/webpack.js "--watch"

[nodemon] 1.19.4
[nodemon] to restart at any time, enter rs
[nodemon] watching dir(s): .
[nodemon] watching extensions: js,jsx,scss
[nodemon] starting node --harmony index.js

webpack is watching the files…

(node:512) [DEP_WEBPACK_WATCH_WITHOUT_CALLBACK] DeprecationWarning: A 'callback' argument need to be provided to the 'webpack(options, callback)' function when the 'watch' option is set. There is no way to handle the 'watch' option without a callback.
Let's get this party started!
(node:526) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(node:526) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:526) DeprecationWarning: Listening to events on the Db class has been deprecated and will be removed in the next major version.

from stretto.

benkaiser avatar benkaiser commented on July 20, 2024

Deprecations warnings should be fine, that should compile the extension for you after you change it to your domain

Were you able to load the extension folder into chrome?

from stretto.

Orangeskai avatar Orangeskai commented on July 20, 2024

i tried to clone the repo and install it

while i npm install shows me this error
~/Stretto-Helper-Extension$ npm install
npm WARN [email protected] No repository field.

added 187 packages from 202 contributors and audited 187 packages in 26.556s

19 packages are looking for funding
run npm fund for details

found 4 vulnerabilities (1 moderate, 3 high)
run npm audit fix to fix them, or npm audit for details

and while npm start i have this error

[email protected] start /home/noname/Stretto-Helper-Extension
webpack

[webpack-cli] Compilation finished
assets by status 132 KiB [cached] 2 assets
runtime modules 1.21 KiB 5 modules
orphan modules 2.81 KiB [orphan] 2 modules
modules by path ./node_modules/ 118 KiB
modules by path ./node_modules/react-native-ytdl/lib/ 109 KiB
modules by path ./node_modules/react-native-ytdl/lib/.js 60.8 KiB 8 modules
modules by path ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/ 48.1 KiB 8 modules
modules by path ./node_modules/querystring/
.js 4.51 KiB 3 modules
./node_modules/react-native-ytdl/index.js + 1 modules 2.16 KiB [built] [code generated]
./node_modules/react-native-ytdl/package.json 1.98 KiB [built] [code generated]
modules by path ./src/*.ts 6.45 KiB
./src/background.ts 6.07 KiB [built] [code generated]
./src/content.ts 305 bytes [built] [code generated]
./src/processMock.ts 82 bytes [built] [code generated]

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 3:0-84
Module not found: Error: Can't resolve 'react-native/Libraries/Utilities/PolyfillFunctions' in '/home/noname/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url'
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/URL.js 1:0-45
Module not found: Error: Can't resolve 'react-native' in '/home/noname/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 11:30-53 5:0-25 5:0-25
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/URL.js 2:0-62
Module not found: Error: Can't resolve 'whatwg-url-without-unicode' in '/home/noname/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 11:30-53 5:0-25 5:0-25
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/URLSearchParams.js 1:0-61
Module not found: Error: Can't resolve 'whatwg-url-without-unicode' in '/home/noname/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 14:10-57 6:0-37 6:0-37
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/ios10Fix.js 7:0-40
Module not found: Error: Can't resolve 'react-native' in '/home/noname/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 1:0-23
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

webpack 5.8.0 compiled with 5 errors in 6606 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: webpack
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/noname/.npm/_logs/2021-06-02T12_52_56_408Z-debug.log

from stretto.

benkaiser avatar benkaiser commented on July 20, 2024

What node version are you using? You can probably use the latest (14 or 15) to build the extension

from stretto.

Orangeskai avatar Orangeskai commented on July 20, 2024

i use
node -v
v12.22.1
npm -v
6.14.12

But how i change the port and domain of server ?
and can i make the extension to run in static ip ???? (im only using in my local network)

Ok i found it when i tried in the server it just play normally but if im using another computer he just froze
and i still dont know how to build the extension @_@ litterally trying everything but still error.

But thank you to make this good app :)

from stretto.

benkaiser avatar benkaiser commented on July 20, 2024

As for changing the port and domain of your server, that's outside the scope of the help I can provide here. Docker supports running on different ports (port 80 is the default http port, and 443 is the default https port), you might need different privileges to do so.

Good to hear you got it running on localhost!
As for the other machine, you're likely accessing it with the machine IP address right? You'll need to add that IP address as part of the list in the extension I sent you.

For trying to get that to build, have you tried the latest nodejs version (15.x.x)?

from stretto.

benkaiser avatar benkaiser commented on July 20, 2024

npm start runs for me on node 14.6, the package-lock.json file should be ensuring the right versions of all the packages between us, so they should behave the same on both machines.

What OS are you building on?

from stretto.

Orangeskai avatar Orangeskai commented on July 20, 2024

still error sadly

root@debian:/home/user/Stretto-Helper-Extension# node -v
v14.17.0
root@debian:/home/user/Stretto-Helper-Extension# npm install
npm WARN [email protected] No repository field.

audited 192 packages in 2.465s

20 packages are looking for funding
run npm fund for details

found 4 vulnerabilities (1 moderate, 3 high)
run npm audit fix to fix them, or npm audit for details
root@debian:/home/user/Stretto-Helper-Extension# npm start

[email protected] start /home/user/Stretto-Helper-Extension
webpack

[webpack-cli] Compilation finished
assets by status 281 KiB [cached] 2 assets
runtime modules 1.21 KiB 5 modules
orphan modules 2.81 KiB [orphan] 2 modules
modules by path ./node_modules/ 265 KiB
modules by path ./node_modules/react-native-ytdl/ 118 KiB 21 modules
modules by path ./node_modules/whatwg-url-without-unicode/ 132 KiB
modules by path ./node_modules/whatwg-url-without-unicode/lib/.js 69.4 KiB 8 modules
modules by path ./node_modules/whatwg-url-without-unicode/
.js 1.13 KiB 2 modules
modules by path ./node_modules/whatwg-url-without-unicode/node_modules/ 61.3 KiB 2 modules
./node_modules/webidl-conversions/lib/index.js 9.67 KiB [built] [code generated]
./node_modules/base64-js/index.js 3.84 KiB [built] [code generated]
./node_modules/ieee754/index.js 2.1 KiB [built] [code generated]
modules by path ./src/*.ts 6.45 KiB
./src/background.ts 6.07 KiB [built] [code generated]
./src/content.ts 305 bytes [built] [code generated]
./src/processMock.ts 82 bytes [built] [code generated]

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 3:0-84
Module not found: Error: Can't resolve 'react-native/Libraries/Utilities/PolyfillFunctions' in '/home/user/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url'
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/URL.js 1:0-45
Module not found: Error: Can't resolve 'react-native' in '/home/user/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 11:30-53 5:0-25 5:0-25
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/ios10Fix.js 7:0-40
Module not found: Error: Can't resolve 'react-native' in '/home/user/Stretto-Helper-Extension/node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 1:0-23
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

webpack 5.8.0 compiled with 3 errors in 3781 ms
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: webpack
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2021-06-03T02_57_33_209Z-debug.log
root@debian:/home/user/Stretto-Helper-Extension#

im also tried in my windows 10 laptop with node v14.16.0
and the error is same or even worse because i get 5 error

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 3:0-84
Module not found: Error: Can't resolve 'react-native/Libraries/Utilities/PolyfillFunctions' in 'C:\Users\jjrra\Downloads\test\Stretto-Helper-Extension\node_modules\react-native-ytdl\lib_REACT_NATIVE_YTDL_CUSTOM_MODULES_\url'
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/URL.js 1:0-45
Module not found: Error: Can't resolve 'react-native' in 'C:\Users\jjrra\Downloads\test\Stretto-Helper-Extension\node_modules\react-native-ytdl\lib_REACT_NATIVE_YTDL_CUSTOM_MODULES_\url\js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 11:30-53 5:0-25 5:0-25
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/URL.js 2:0-62
Module not found: Error: Can't resolve 'whatwg-url-without-unicode' in 'C:\Users\jjrra\Downloads\test\Stretto-Helper-Extension\node_modules\react-native-ytdl\lib_REACT_NATIVE_YTDL_CUSTOM_MODULES_\url\js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 11:30-53 5:0-25 5:0-25
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/URLSearchParams.js 1:0-61
Module not found: Error: Can't resolve 'whatwg-url-without-unicode' in 'C:\Users\jjrra\Downloads\test\Stretto-Helper-Extension\node_modules\react-native-ytdl\lib_REACT_NATIVE_YTDL_CUSTOM_MODULES_\url\js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 14:10-57 6:0-37 6:0-37
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/ios10Fix.js 7:0-40
Module not found: Error: Can't resolve 'react-native' in 'C:\Users\jjrra\Downloads\test\Stretto-Helper-Extension\node_modules\react-native-ytdl\lib_REACT_NATIVE_YTDL_CUSTOM_MODULES_\url\js'
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 1:0-23
@ ./node_modules/react-native-ytdl/lib/sig.js
@ ./node_modules/react-native-ytdl/lib/index.js 5:12-28
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

from stretto.

Orangeskai avatar Orangeskai commented on July 20, 2024

i try with docker image node js buster i got different error like this

ERROR in ./node_modules/react-native/Libraries/Utilities/PolyfillFunctions.js 28:31
Module parse failed: Unexpected token (28:31)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| * @see facebook/react-native#934
| */

function polyfillObjectProperty(
| object: {...},
| name: string,
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 3:0-84 11:2-16 12:2-16
@ ./node_modules/react-native-ytdl/lib/info.js
@ ./node_modules/react-native-ytdl/lib/index.js 1:16-33
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

ERROR in ./node_modules/react-native/index.js 14:7
Module parse failed: Unexpected token (14:7)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| // Components

import typeof AccessibilityInfo from './Libraries/Components/AccessibilityInfo/AccessibilityInfo';
| import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
| import typeof Button from './Libraries/Components/Button';
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/js/ios10Fix.js 7:0-40 9:33-49 11:4-15
@ ./node_modules/react-native-ytdl/lib/REACT_NATIVE_YTDL_CUSTOM_MODULES/url/index.js 1:0-23
@ ./node_modules/react-native-ytdl/lib/info.js
@ ./node_modules/react-native-ytdl/lib/index.js 1:16-33
@ ./node_modules/react-native-ytdl/index.js 1:0-25 3:15-19
@ ./src/background.ts

from stretto.

Orangeskai avatar Orangeskai commented on July 20, 2024

ok i get it worked but i need to change manually from background.js and manifest.json

but the build tool still error i try to experiment by adding

externals: { "react-native-ytdl": true },

image

in the webpack.config.js

the script can run successfully with no error but after installing to the chrome i get another problem like
image

from stretto.

benkaiser avatar benkaiser commented on July 20, 2024

Good idea, skip the build script and just modify background.js manually

from stretto.

benkaiser avatar benkaiser commented on July 20, 2024

so reset to master first, that way you'll undo your broken changes, and just manually modify next.kaiserapps.com in the built background.js to your custom domain/ip address and port

from stretto.

Orangeskai avatar Orangeskai commented on July 20, 2024

okay thanks :) and i will try to search the problem for build process

from stretto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.