Skip to content

cannot resolve module 'youtube-api-search' #261

Description

@fillipi1

when trying to import YTSearch i get this error
ERROR in ./src/index.js
Module not found: Error: Cannot resolve module 'youtube-api-search' in /Users/fillipi/ReduxSimpleStarter/src
@ ./src/index.js 11:24-53

import React from 'react';
import ReactDOM from 'react-dom';
import YTSearch from 'youtube-api-search';

import SearchBar from './component/searchBar';

const API_KEY = 'AIzaSyAU9eqxZ7GpTpr8X0e_nV2h0AMVnAuJKaI';

YTSearch({key: API_KEY, term: 'surfboards'}, function(data) {
console.log(data);
});

//create new component. this should produce some html

const App = () => {

return (


); }

//take this components generated html and put it on the page (in the DOM)

ReactDOM.render(, document.querySelector('.container'));

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions