scorelab / TrackPal

TrackPal
Apache License 2.0
5 stars 36 forks source link

ERROR: Gradle DSL method not found: 'classpath()' #57

Closed thilinaviraj closed 4 years ago

thilinaviraj commented 4 years ago

I tried to build the project with android studio. Initially, the npm install was failed due to mismatch in the firebase versions configured in the project. Once updated with the latest version, the npm install could be completed. But now I'm facing below errors when trying to build the android app. Updated the gradle version to 5.6.4 as well image

shehand commented 4 years ago

@thilinaviraj what was the output when you ran npx react-native run-android

thilinaviraj commented 4 years ago

@shehand pls find below output

SyntaxError: Invalid regular expression: /(.\fixtures\.|node_modules[\]react[\]dist[\].|website\node_modules\.|heapCapture\bundle.js|.\tests\.)$/ : Unterminated character class at new RegExp () at blacklist (D:\BugBounty\Exported\TrackPal\node_modules\metro-config\ src\defaults\blacklist.js:34:10) at getBlacklistRE (D:\BugBounty\Exported\TrackPal\node_modules\react-na tive\local-cli\util\Config.js:56:10) at Object. (D:\BugBounty\Exported\TrackPal\node_modules\reac t-native\local-cli\util\Config.js:71:20) at Module._compile (internal/modules/cjs/loader.js:956:30) at Module._compile (D:\BugBounty\Exported\TrackPal\node_modules\pirates \lib\index.js:99:24) at Module._extensions..js (internal/modules/cjs/loader.js:973:10) at Object.newLoader [as .js] (D:\BugBounty\Exported\TrackPal\node_modul es\pirates\lib\index.js:104:7) at Module.load (internal/modules/cjs/loader.js:812:32) at Function.Module._load (internal/modules/cjs/loader.js:724:14)

shehand commented 4 years ago

OK. I'm a bit confused now. Did you follow all the steps in the guide? Because I'm not getting such an error.

thilinaviraj commented 4 years ago

Yes. Possible to update the repo with the latest set of dependencies?

thilinaviraj commented 4 years ago

This is due to an issue in the latest node modules. You can fix it by updating your blacklist.js file as below. (Just adding backslashes)

var sharedBlacklist = [ /node_modules[\/\]react[\/\]dist[\/\]./, /website\/node_modules\/./, /heapCapture\/bundle.js/, /.\/tests\/./ ];

shehand commented 4 years ago

I've updated the docs of TrackPal. This issue should be solved by this PR