element-hq / element-web-ilag-module Goto Github PK
View Code? Open in Web Editor NEWProof of concept for https://github.com/matrix-org/matrix-react-sdk-module-api
License: Apache License 2.0
Proof of concept for https://github.com/matrix-org/matrix-react-sdk-module-api
License: Apache License 2.0
The old version has a wrong configuration of package.json so it doesn't work.
Looks like MatrixClientPeg.get()
is null when not logged in?
rageshake.ts?f0f1:73
RVS failed to get room id for alias: TypeError: Cannot read properties of null (reading 'getRoomIdForAlias')
at RoomViewStore.viewRoom (RoomViewStore.tsx?b0a3:352:42)
at RoomViewStore.__onDispatch (RoomViewStore.tsx?b0a3:174:22)
at RoomViewStore.__invokeOnDispatch (FluxStore.js?939a:148:1)
at Object.eval [as ID_21] (FluxStore.js?939a:79:1)
at MatrixDispatcher._invokeCallback (Dispatcher.js?4caf:198:1)
at MatrixDispatcher.dispatch (Dispatcher.js?4caf:174:1)
I have made the room public, added a local address and guests are allowed.
This is my build_config.yaml:
yarn add
for inclusion.modules:
# An example of pulling a module from github
- "github:vector-im/element-web-ilag-module#main"
After running yarn build
I get a modules file but the module import is not resolving:
C:\Users\cfriedlander\Documents\element web test older versions\element-web>yarn build yarn run v1.22.5 $ yarn clean && yarn build:genfiles && yarn build:bundle $ rimraf lib webapp $ yarn build:res && yarn build:jitsi && yarn build:module_system $ node scripts/copy-res.js $ node scripts/build-jitsi.js Making webapp directory Downloading Jitsi script Done with Jitsi download $ tsc --project ./tsconfig.module_system.json && node ./lib/module_system/scripts/install.js [1/4] Resolving packages... [2/4] Fetching packages... info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. info [email protected]: The platform "win32" is incompatible with this module. info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation. [3/4] Linking dependencies... warning "matrix-react-sdk > maplibre-gl > @mapbox/[email protected]" has unmet peer dependency "mapbox-gl@>=0.32.1 <2.0.0". warning " > [email protected]" has unmet peer dependency "eslint-plugin-jsx-a11y@^6.5.1". [4/4] Building fresh packages... success Saved lockfile. success Saved 2 new dependencies. info Direct dependencies └─ @vector-im/[email protected] info All dependencies ├─ @vector-im/[email protected] └─ [email protected] The following modules have been installed: [ '@vector-im/element-web-ilag-module' ] Done installing modules $ webpack --progress --bail --mode production Unset VERSION variable - this may affect build output 31% building 147/205 modules 58 active ...st older versions\matrix-react-sdk\node_modules\@matrix-org\react-sdk-module-api\lib\components\TextInputField.jsModuleNotFoundError: Module not found: Error: Can't resolve '@vector-im/element-web-ilag-module' in 'C:\Users\cfriedlander\Documents\element web test older versions\element-web\src' at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\webpack\lib\Compilation.js:925:10 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\webpack\lib\NormalModuleFactory.js:401:22 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\webpack\lib\NormalModuleFactory.js:130:21 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\webpack\lib\NormalModuleFactory.js:224:22 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\neo-async\async.js:2830:7 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\neo-async\async.js:6877:13 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\webpack\lib\NormalModuleFactory.js:214:25 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:213:14 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:44:7 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:27:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\DescriptionFilePlugin.js:67:43 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:43:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\ModuleKindPlugin.js:30:40 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\forEachBail.js:30:14 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\UnsafeCachePlugin.js:44:7 at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 at eval (eval at create (C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:15:1) at C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\enhanced-resolve\lib\Resolver.js:285:5 resolve '@vector-im/element-web-ilag-module' in 'C:\Users\cfriedlander\Documents\element web test older versions\element-web\src' Parsed request is a module using description file: C:\Users\cfriedlander\Documents\element web test older versions\element-web\package.json (relative path: ./src) Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration resolve as module C:\Users\cfriedlander\Documents\element web test older versions\element-web\src\node_modules doesn't exist or is not a directory C:\Users\cfriedlander\Documents\element web test older versions\node_modules doesn't exist or is not a directory C:\Users\cfriedlander\Documents\node_modules doesn't exist or is not a directory C:\Users\cfriedlander\node_modules doesn't exist or is not a directory C:\Users\node_modules doesn't exist or is not a directory C:\node_modules doesn't exist or is not a directory looking for modules in C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules using description file: C:\Users\cfriedlander\Documents\element web test older versions\element-web\package.json (relative path: ./node_modules) Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\package.json (relative path: .) no extension Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module is not a file .js Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module.js doesn't exist .json Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module.json doesn't exist .ts Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module.ts doesn't exist .tsx Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module.tsx doesn't exist as directory existing directory use ./lib/index.js from main in package.json using description file: C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\package.json (relative path: .) Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration using description file: C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\package.json (relative path: ./lib/index.js) no extension Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\lib\index.js doesn't exist .js Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\lib\index.js.js doesn't exist .json Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\lib\index.js.json doesn't exist .ts Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\lib\index.js.ts doesn't exist .tsx Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\lib\index.js.tsx doesn't exist as directory C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\lib\index.js doesn't exist using path: C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\index using description file: C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\package.json (relative path: ./index) no extension Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\index doesn't exist .js Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\index.js doesn't exist .json Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\index.json doesn't exist .ts Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\index.ts doesn't exist .tsx Field 'matrix_src_browser' doesn't contain a valid alias configuration Field 'browser' doesn't contain a valid alias configuration C:\Users\cfriedlander\Documents\element web test older versions\element-web\node_modules\@vector-im\element-web-ilag-module\index.tsx doesn't exist error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
blocked on account access
Also I'm trying to build locally with yarn start and I'm getting Errors, is there a guide for how to do that?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.