I was already working with Firebase functions so I already had a Firebase project initialized and everything deployed successfully. I created a React app in the Firebase project directory with create-react-app.
But now that I'm trying to deploy the whole thing to Firebase Hosting by running firebase deploy, I have these errors:
$ firebase deploy
=== Deploying to 'approof-references-debug'...
i deploying functions, hosting
Running command: npm --prefix $RESOURCE_DIR run lint
> functions@ lint /Users/sarbogast/dev/Derbigum/backend/functions
> tslint -p tslint.json
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[12, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[13, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[14, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[15, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[17, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[18, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[19, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[20, 1]: import with explicit side-effect
WARNING: /Users/sarbogast/dev/Derbigum/backend/functions/src/index.ts[21, 1]: import with explicit side-effect
Running command: npm --prefix $RESOURCE_DIR run build
> functions@ build /Users/sarbogast/dev/Derbigum/backend/functions
> tsc
node_modules/firebase-functions/lib/function-builder.d.ts(60,95): error TS1005: ';' expected.
node_modules/firebase-functions/lib/function-builder.d.ts(60,96): error TS1003: Identifier expected.
node_modules/firebase-functions/lib/function-builder.d.ts(60,116): error TS1005: ';' expected.
../node_modules/@types/prop-types/index.d.ts(33,46): error TS1005: ';' expected.
../node_modules/@types/prop-types/index.d.ts(33,75): error TS1005: ';' expected.
...
And I did not include all the errors but they all look the same. Any idea what might be going wrong?
如果在package.json中指定了Firebase cli,则Firebase cli可能会在部署之前检查是否有棉绒警告。
"lint": "./node_modules/.bin/eslint --max-warnings=0 .",
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.