Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fillipi1 opened this issue Jul 30, 2018 · 3 comments
Open

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

fillipi1 opened this issue Jul 30, 2018 · 3 comments

Comments

@fillipi1
Copy link

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'));

@JK-FlipFlop
Copy link

Hi @fillipi1. Try to remove the existing module using npm r youtube-api-search and then re-install the module using npm install --save youtube-api-search.

I don't know why this error is occurring as when I did this project it went out all smoothly.

@jack1012t
Copy link

Hey @fillipi1 did you get this resolved? Also note that you should check your package.json file to ensure your npm install works

@AMIT-PATILJIMS
Copy link

Hi @fillipi1. Try to remove the existing module using npm r youtube-api-search and then re-install the module using npm install --save youtube-api-search.

I don't know why this error is occurring as when I did this project it went out all smoothly.

thanks a lot.............

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants