Skip to content

Instantly share code, notes, and snippets.

diff --git a/src/ui/components/MetadataCard/index.js b/src/ui/components/MetadataCard/index.js
index 6575558..1ece55e 100644
--- a/src/ui/components/MetadataCard/index.js
+++ b/src/ui/components/MetadataCard/index.js
@@ -17,7 +17,7 @@ const MetadataCard = ({ className, metadata }: Props) => {
return (
<div className={makeClassName('MetadataCard', className)}>
- {metadata.map(({ content, title } = {}) => {
+ {metadata.map(({ content, title } = {}, index) => {
diff --git a/src/amo/components/Home/index.js b/src/amo/components/Home/index.js
index d18de27..caf3e57 100644
--- a/src/amo/components/Home/index.js
+++ b/src/amo/components/Home/index.js
@@ -6,6 +6,7 @@ import { compose } from 'redux';
import { setViewContext } from 'amo/actions/viewContext';
import CategoryIcon from 'amo/components/CategoryIcon';
+import FeaturedCollectionCard from 'amo/components/FeaturedCollectionCard';
import HomeHeroBanner from 'amo/components/HomeHeroBanner';
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ src/amo/components/AddonsCard/index.js:19:18
Property notes is missing in AddonType [1] but exists in CollectionAddonType [2].
16│
17│ type Props = {|
18│ addonInstallSource?: string,
[1][2] 19│ addons?: Array<AddonType> | Array<CollectionAddonType> | null,
20│ children?: React.Node,
21│ className?: string,
/* @flow */
import makeClassName from 'classnames';
import { oneLine } from 'common-tags';
import invariant from 'invariant';
import * as React from 'react';
import defaultCookie from 'react-cookie';
import { compose } from 'redux';
import { connect } from 'react-redux';
import AddonsCard from 'amo/components/AddonsCard';
Error: src/amo/api/collections.js:217
v
217: return callApi({
218: auth: true,
219: body: {
...:
231: });
^ object literal. This type is incompatible with the expected param type of
95: }: CallApiParams): Promise<any> {
^^^^^^^^^^^^^ object type. See: src/core/api/index.js:95
return callApi({
auth: true,
body: {
default_locale: defaultLocale,
description,
name,
slug,
// The public=true|false flag is not sent to the API. This is
// because collections are always public. Omitting this parameter
// should cut down on unexpected bugs.
An error occurred running eslint. Please check the following error messages:
Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion.
You may need to update the mappings in /Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js
Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion.
Error: Could not load globals from file /Users/bsilverberg/mozilla-central/browser/base/content/browser.js: Error: Invalid ecmaVersion.
at getScriptGlobals (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js:102:13)
at getMozillaCentralItems (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/environments/browser-window.js:121:25)
at Object.<anonymous> (/Users/bsilverberg/mozilla-central/tools/lint/eslint/eslint-plugin-mozilla/lib/envir
~/Documents/gitRepos/addons-frontend[permissions-2757*]$ yarn flow
yarn run v1.3.2
$ flow
Error: src/amo/components/PermissionsCard/index.js:148
v----------
148: <Permission
149: className="hostPermission"
150: description={permissionStrings.allUrls}
151: key="allUrls"
152: />
Executing script: webpack-dev-server
[0]
[0] to be executed: node bin/webpack-dev-server.js
[1] /Users/bsilverberg/Documents/gitRepos/addons-frontend/node_modules/babel-core/lib/transformation/file/index.js:590
[1] throw err;
[1] ^
[1]
[1] SyntaxError: /Users/bsilverberg/Documents/gitRepos/addons-frontend/src/static-assets/firefox-logo.png: Unexpected character '�' (1:0)
[1] > 1 | �PNG
[1] | ^
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<!DOCTYPE dialog [
<!ENTITY % preferencesDTD SYSTEM "chrome://global/locale/preferences.dtd">
%preferencesDTD;
<!ENTITY % connectionDTD SYSTEM "chrome://browser/locale/preferences/connection.dtd">