Giter Club home page Giter Club logo

youtube-search's Introduction

youtube-search

build status JavaScript Style Guide

Easily search for videos on Youtube using their v3 API.

Options

You can pass a lot of optional parameters as the second parameter, they are documented here.

Rate limiting

Google enforces a rate limit on the Youtube Data API. You will probably need to register your application for a key and supply this key in the opts.

JavaScript Usage

var search = require('youtube-search');

var opts = {
  maxResults: 10,
  key: 'yourkey'
};

search('jsconf', opts, function(err, results) {
  if(err) return console.log(err);

  console.dir(results);
});

TypeScript Usage

A TypeScript definition file is included so that 'youtube-search' can be used easily from TypeScript.

import * as youtubeSearch from "youtube-search";

var opts: youtubeSearch.YouTubeSearchOptions = {
  maxResults: 10,
  key: "yourkey"
};

youtubeSearch("jsconf", opts, (err, results) => {
  if(err) return console.log(err);

  console.dir(results);
});

Tests

To run the tests you need a Youtube v3 API key:

API_KEY=<your-api-key> npm test

youtube-search's People

Contributors

bastl34 avatar dependabot[bot] avatar dkordik avatar dpeukert avatar ericsaboia avatar felixmc avatar firecontroller1847 avatar frankhale avatar harumando avatar maxgfeller avatar n3bby avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

youtube-search's Issues

Can't search with the package

Hi, i have tried to search with the package but it returned status 403, i am sure that my key is accessible and it is valid

Use axios as http client

Currently we're using xhr for requests from the browser and request for node runtimes. This is unneccessarily complicated and even leads to error messages sometimes.

It would be cool to use a proven request library like axios to unify requests between environments.

This is a good first issue, let me know if you have any questions.

Need help

const searchOptions = { maxResults: 1, key: apiKey, type: 'video', safeSearch: "strict"};

Its still showing nsfw videos

Bad Request

Not sure what's going on. My Google API token is valid.

Reproduceable Code

  async getVideoURL(query) {
    let url = yt.getVideoID(query);
    if (url instanceof Error) {
      const res = await yts(query, {
        maxResults: 1,
        key: gapitoken,
        type: "video"
      });
      if (res.length <= 0) return null;
      url = res[0].link;
    }
    return url;
  }

(This is a method in a class, so there's not function keyword).

Full Error

Error: Bad Request
    at Request._callback (C:\Users\Owner\Desktop\Development\Git\_CAT Discord Bots\fm-radio\node_modules\youtube-search\index.js:76:21)
    at Request.self.callback (C:\Users\Owner\Desktop\Development\Git\_CAT Discord Bots\fm-radio\node_modules\request\request.js:185:22)
    at Request.emit (events.js:182:13)
    at Request.<anonymous> (C:\Users\Owner\Desktop\Development\Git\_CAT Discord Bots\fm-radio\node_modules\request\request.js:1157:10)
    at Request.emit (events.js:182:13)
    at IncomingMessage.<anonymous> (C:\Users\Owner\Desktop\Development\Git\_CAT Discord Bots\fm-radio\node_modules\request\request.js:1079:12)
    at Object.onceWrapper (events.js:273:13)
    at IncomingMessage.emit (events.js:187:15)
    at endReadableNT (_stream_readable.js:1081:12)
    at process._tickCallback (internal/process/next_tick.js:63:19)

Incorrect Usage

The usage you show won't work.

The opts JSON object is not valid as JSON objects are not defined with equal signs.

They should be using semicolons.

Feed of undefined

I keep getting this error.

TypeError: Cannot read property 'feed' of undefined

It comes from line 39 of the index.js file while using a modified version of the usage code in the README.md file.

However, for me result is defined when I console.log it. It doesn't have an index of "feed" though.

Tape for testing?

Hi, neat project!

Just curious as Tape over other testing solutions.

The documentation is a bit hard to follow at first glance.

Youtube pllaylist URL

Possible functionality of parsing a Youtube playlist URL to its individual video urls?

Search fails while more than one word

Hello!
First thank you for your module, but I ensurred an issue, where the search fails when the query contains more than one word seperated by space. For example:
Works: "video", "kurzgesagt", etc.
Doesn't work: "best videos"

Do you have a fix for that? I tried to replace the space with a '+', '|' or '%20' but nothing actually worked.

Just read it...

When I paired this with Discord.js, if I already had something in the queue, it would say Cannot read property 0 of undefined when trying to read the first item in the array returned by this module.

Code:
if(command === "play") {
const queue = getQueue(message.guild.id);
const qq = getTQueue(message.guild.id)
if(!message.member.voiceChannel) return message.reply('please join a voice channel first.');

message.member.voiceChannel.join().then(connection => {
var YouTubeSearch = require('youtube-search');

var opts = {
  maxResults: 1,
  key: "AIzaSyD7plXhX_-V8AMMKavnDs6HNbPWIiZgF2U"
};

YouTubeSearch(args.slice(1).join(" "), opts, (err, results) => {
  
  var video = results[0];
  
  if(err) return message.channel.send(`I encountered an error when trying to find ${args.slice(1).join(" ")}\n\`\`\`xl\n${err}\`\`\``)
  
  qq.push(`${video.title} by ${video.channelTitle}`);

  message.channel.send(`Queued \`${video.title}\` By \`${video.channelTitle}\` `);

  queue.push(video.link);

  if(!message.guild.voiceConnection.player.dispatcher) var dispatcher = connection.playStream(ytdl(queue[0], { filter: "audioonly", volume: 0.2 }));

  connection.on("end", () => {
    if(queue[1]) {
      qq.shift();
      queue.shift();
      var dispatcher = connection.playStream(ytdl(queue[0], { filter: "audioonly", volume: 0.2 }));
    }
  });

  dispatcher.on("end", () => {
    qq.shift();
      queue.shift();
      if(queue[0]) var dispatcher = connection.playStream(ytdl(queue[0], { filter: "audioonly", volume: 0.2 }));
      if(!queue[0]) message.member.voiceChannel.leave();
      if(!queue[0]) message.channel.send(`Queue completed.`)
  })

});
});
};

get URL

can you help me how can i get video url

Promise support

Does this library support promises? If not, it'd be a great feature to add!

How to receive video duration?

As far as I saw, 'item' in your code doesn't contain it.
I've searched online, and I cannot, for the life of me, understand Google's API.
How would I go about retrieving it?

Here's the code that holds the 'item':

      var findings = result.items.map(function (item) {
        var link = ''
        var id = ''
        switch (item.id.kind) {
          case 'youtube#channel':
            link = 'https://www.youtube.com/channel/' + item.id.channelId
            id = item.id.channelId
            break
          case 'youtube#playlist':
            link = 'https://www.youtube.com/playlist?list=' + item.id.playlistId
            id = item.id.playlistId
            break
          default:
            link = 'https://www.youtube.com/watch?v=' + item.id.videoId
            id = item.id.videoId
            break
        }

        return {
          id: id,
          link: link,
          kind: item.id.kind,
          publishedAt: item.snippet.publishedAt,
          channelId: item.snippet.channelId,
          channelTitle: item.snippet.channelTitle,
          title: item.snippet.title,
          description: item.snippet.description,
          thumbnails: item.snippet.thumbnails
          videoDuration: item
        }

Reoccuring Error

``const Discord = require("discord.js");
const client = new Discord.Client();
const config = require("./config.json");
const ytdl = require("ytdl-core");
const fs = require("fs");

client.on("ready", () => {
console.log("Logged in as ${client.user.username}!");
client.user.setGame("Use >help for commands.");
});

client.on("message", message => {
var aud = {
maxResults: 1,
key: config.YoutubeApiKey
};

const search = require("youtube-search");
if (message.content.startsWith(config.prefix + "play")) {
message.delete(2000);
const voiceChannel = message.member.voiceChannel;
if(!voiceChannel) return message.reply(" I don't see you peeking in that voice channel ๐Ÿ˜„");
if(!voiceChannel.joinable) return message.reply(" I can not join because I see that the server is full. Or I am not have access to the voice channel called " + voiceChannel + "");
voiceChannel.join()
.then(connection => {
search (message.content.split(" ").slice(1).join(" "), aud, function (err, results) {
ytdl(results[0].link, {filter: "audioonly"}).pipe(fs.createWriteStream("${song.title}.mp3"));
const stream = ytdl(results[0].link, {
filter: "audioonly"
});
if (err) return console.log(err);
console.log("ERROR: " + err);
console.log("RESULTS: " + results);
console.log("RESULTS" + require("util").inspect(results, { depth: null }));
ytdl.setVolume(1);
const dispatcher = connection.playStream(stream);
dispatcher.on("end", () => voiceChannel.leave);
});
});
}});

client.login(config.token);
client.on("error", (e) => console.error(e));
client.on("warn", (e) => console.warn(e));
``
I keep on receiving an error "TypeError: Cannot read property '0' of undefined" and tried to find a way to get a bit more detail and got "ERROR: null" including "RESULTS: [object Object]" Does it have to do with ytdl-core? Or this? I used a sample video "I believe I can fly" to see if it works. The result was this. The link contains the picture, sadly I wanted to find a way to trim it but found this to get trimmed pictures. Gyazo is the software used to take the trimmed screenshot. Even though this is getting off topic, I just wanted to report this, hope you respond quickly due to me being on a vacation. @MaxGfeller (this is also posted on the issues page on youtube-search for reassurance.)

Object object

How do you just get the title and the URL to post? I tried results.title but it's undefined.

Quite new to js so sorry about the noob question.

Time

Would it be possible to add the duration of the video?

Error: Bad Request

Error: Bad Request
at Request._callback (C:\Users\James\node_modules\youtube-search\index.js:65:21)
at Request.self.callback (C:\Users\James\node_modules\request\request.js:188:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:194:7)
at Request. (C:\Users\James\node_modules\request\request.js:1171:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:191:7)
at IncomingMessage. (C:\Users\James\node_modules\request\request.js:1091:12)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:91:20)

i get a error of when i try to get the url

error in console
throw new TypeError('Parameter "url" must be a string, not ' + typeof url); ^
full error message
` { id: 'K4DyBUG242c',
link: 'https://www.youtube.com/watch?v=K4DyBUG242c',
kind: 'youtube#video',
publishedAt: '2015-07-09T16:34:35.000Z',
channelId: 'UC_aEa8K-EOJ3D6gOs7HcyNg',
channelTitle: 'NoCopyrightSounds',
title: 'Cartoon - On & On (feat. Daniel Levi) [NCS Release]',
description: 'NoCopyrightSounds, music without limitations. Support on iTunes: http://apple.co/1JhAFVD Download this track for FREE: http://bit.ly/cartoon_onon โ†• Listen on ...',
thumbnails: { default: [Object], medium: [Object], high: [Object] } } ]
undefined
url.js:87
throw new TypeError('Parameter "url" must be a string, not ' + typeof url);
^

TypeError: Parameter "url" must be a string, not undefined
at Url.parse (url.js:87:11)
at Object.urlParse [as parse] (url.js:81:5)
at Object.exports.getVideoID (/var/www/html/bot/node_modules/ytdl-core/lib/util.js:225:20)
at getInfo (/var/www/html/bot/node_modules/ytdl-core/lib/info.js:39:17)
at ytdl (/var/www/html/bot/node_modules/ytdl-core/lib/index.js:18:3)
at /var/www/html/bot/bot.js:281:1
at Request._callback (/var/www/html/bot/node_modules/youtube-search/index.js:109:14)
at Request.self.callback (/var/www/html/bot/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:191:7)
`
any help would b grate

Uncaught TypeError: querystring.stringify is not a function

var opts: youtubeSearch.YouTubeSearchOptions = {
  maxResults: 1,
  key: import.meta.env.VITE_YOUTUBE_API_KEY,
  part: ["snippet"],
  q: "best part her",
  type: ["video"],
  videoCategoryId: "10",
};

youtubeSearch("jsconf", opts, (err: any, results: any) => {
  if (err) return console.log(err);

  console.log(results);
});

I'm getting an error on this line youtubeSearch("jsconf", opts, (err: any, results: any) => {

Uncaught TypeError: querystring.stringify is not a function
    search index.js:64
    setup App.vue:66

This is the line on index.js:64
axios.get('https://www.googleapis.com/youtube/v3/search?' + querystring.stringify(params))

Testing it out on vite + vue3 + typescript

<button onclick="youtubeSearch()">
        youtubeSearch()
</button>

Is this the correct way?

Error: Request failed with status code 403

I've got the api key inserted but receiving this from the example. Anybody else experiencing this?
UPDATE: my bad, I had yet to enable the youtube api, great work everyone.

Getting error

Module not found: Error: Cannot resolve module 'net' in /Users/arai/desktop/React/myproject/node_modules/tough-cookie/lib

index.d.ts typescript error

Whenever I try to transpile my project using the command tsc
I get the error:

node_modules/youtube-search/index.d.ts(76,95): error TS1005: '=>' expected.

Here's my tsconfig.json file, perhaps I'm missing something there?

{
  "compilerOptions": {
   
    "target": "es6",                          
    "module": "commonjs",                     
    "outDir": "./target",                     
    
    "strict": true,                           
    "strictNullChecks": false,                
    
    "inlineSourceMap": true,                  
    "inlineSources": true,                    

    "experimentalDecorators": true,           
    "emitDecoratorMetadata": true             
	
  },
  "exclude": [
    "node_modules"
  ]
}

I've currently been able to work around the issue by re-declaring the search function in said file:

Reference my PR for a correct solution #43

Optimize requests to use less quota units.

The new quota limit for you tube api is 10,000. It is no longer 1,000,000. I've reached my quota limit with 169 api calls only. In my case, I only need the video Id's of the search results (result limit set to 3). It would be awesome if there was a way to select what fields to query. That way, users has control of the quota units used per api calls.

Any thoughts?

Quota_limit_vs_requests

WARNING: Critical dependency: the request of a dependency is an expression

Got these warnings in the terminal log:

WARNING in ./node_modules/har-validator/node_modules/ajv/lib/async.js
119:15-28 Critical dependency: the request of a dependency is an expression
    at CommonJsRequireContextDependency.getWarnings 
 @ ./node_modules/har-validator/node_modules/ajv/lib/async.js
 @ ./node_modules/har-validator/node_modules/ajv/lib/ajv.js
 @ ./node_modules/har-validator/lib/node4/promise.js
 @ ./node_modules/request/lib/har.js
 @ ./node_modules/request/request.js
 @ ./node_modules/request/index.js
 @ ./node_modules/youtube-search/index.js
 @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

WARNING in ./node_modules/har-validator/node_modules/ajv/lib/compile/index.js
13:21-34 Critical dependency: the request of a dependency is an expression
    at CommonJsRequireContextDependency.getWarnings 
 @ ./node_modules/har-validator/node_modules/ajv/lib/compile/index.js
 @ ./node_modules/har-validator/node_modules/ajv/lib/ajv.js
 @ ./node_modules/har-validator/lib/node4/promise.js
 @ ./node_modules/request/lib/har.js
 @ ./node_modules/request/request.js
 @ ./node_modules/request/index.js
 @ ./node_modules/youtube-search/index.js
 @ multi webpack-dev-server/client?http://0.0.0.0:0 ./src/main.ts

WARNING in ./node_modules/har-validator/node_modules/ajv/lib/async.js
96:20-33 Critical dependency: the request of a dependency is an expression
    at CommonJsRequireContextDependency.getWarnings 
 @ ./node_modules/har-validator/node_modules/ajv/lib/async.js
 @ ./node_modules/har-validator/node_modules/ajv/lib/ajv.js
 @ ./node_modules/har-validator/lib/node4/promise.js
 @ ./node_modules/request/lib/har.js
 @ ./node_modules/request/request.js
 @ ./node_modules/request/index.js
 @ ./node_modules/youtube-search/index.js

This was caused by the dynamic require inside index.js

if (!xhr.open) xhr = require('request')

Apparently webpack cannot handle dynamic requires. I fixed it for now by deleting the line above, but I think it needs permanent fix for this.

Video statistics Details

in api they provide following details when get a video's details.

{
"kind": "youtube#videoListResponse",
"etag": ""m2yskBQFythfE4irbTIeOgYYfBU/JYopv50w1-h3WwuKiyrf-_KqAN0"",
"pageInfo": {
"totalResults": 1,
"resultsPerPage": 1
},
"items": [
{
"kind": "youtube#video",
"etag": ""m2yskBQFythfE4irbTIeOgYYfBU/yUFeHXaftemQ60I7Xm_Ww2mHEAc"",
"id": "Ks-_Mh1QhMc",
"snippet": {
"publishedAt": "2012-10-01T15:27:35.000Z",
"channelId": "UCAuUUnT6oDeKwE6v1NGQxug",
"title": "Your body language may shape who you are | Amy Cuddy",
"description": "Body language affects how others see us, but it may also change how we see ourselves. Social psychologist Amy Cuddy argues that "power posing" -- standing in a posture of confidence, even when we don't feel confident -- can boost feelings of confidence, and might have an impact on our chances for success. (Note: Some of the findings presented in this talk have been referenced in an ongoing debate among social scientists about robustness and reproducibility. Read Amy Cuddy's response here: http://ideas.ted.com/inside-the-debate-about-power-posing-a-q-a-with-amy-cuddy/)\n\nThe TED Talks channel features the best talks and performances from the TED Conference, where the world's leading thinkers and doers give the talk of their lives in 18 minutes (or less). Look for talks on Technology, Entertainment and Design -- plus science, business, global issues, the arts and more.\n\nFollow TED on Twitter: http://www.twitter.com/TEDTalks\nLike TED on Facebook: https://www.facebook.com/TED\n\nSubscribe to our channel: https://www.youtube.com/TED",
"thumbnails": {
"default": {
"url": "https://i.ytimg.com/vi/Ks-_Mh1QhMc/default.jpg",
"width": 120,
"height": 90
},
"medium": {
"url": "https://i.ytimg.com/vi/Ks-_Mh1QhMc/mqdefault.jpg",
"width": 320,
"height": 180
},
"high": {
"url": "https://i.ytimg.com/vi/Ks-_Mh1QhMc/hqdefault.jpg",
"width": 480,
"height": 360
},
"standard": {
"url": "https://i.ytimg.com/vi/Ks-_Mh1QhMc/sddefault.jpg",
"width": 640,
"height": 480
},
"maxres": {
"url": "https://i.ytimg.com/vi/Ks-_Mh1QhMc/maxresdefault.jpg",
"width": 1280,
"height": 720
}
},
"channelTitle": "TED",
"tags": [
"Amy Cuddy",
"TED",
"TEDTalk",
"TEDTalks",
"TED Talk",
"TED Talks",
"TEDGlobal",
"brain",
"business",
"psychology",
"self",
"success"
],
"categoryId": "22",
"liveBroadcastContent": "none",
"defaultLanguage": "en",
"localized": {
"title": "Your body language may shape who you are | Amy Cuddy",
"description": "Body language affects how others see us, but it may also change how we see ourselves. Social psychologist Amy Cuddy argues that "power posing" -- standing in a posture of confidence, even when we don't feel confident -- can boost feelings of confidence, and might have an impact on our chances for success. (Note: Some of the findings presented in this talk have been referenced in an ongoing debate among social scientists about robustness and reproducibility. Read Amy Cuddy's response here: http://ideas.ted.com/inside-the-debate-about-power-posing-a-q-a-with-amy-cuddy/)\n\nThe TED Talks channel features the best talks and performances from the TED Conference, where the world's leading thinkers and doers give the talk of their lives in 18 minutes (or less). Look for talks on Technology, Entertainment and Design -- plus science, business, global issues, the arts and more.\n\nFollow TED on Twitter: http://www.twitter.com/TEDTalks\nLike TED on Facebook: https://www.facebook.com/TED\n\nSubscribe to our channel: https://www.youtube.com/TED"
},
"defaultAudioLanguage": "en"
},
"contentDetails": {
"duration": "PT21M3S",
"dimension": "2d",
"definition": "hd",
"caption": "true",
"licensedContent": true,
"projection": "rectangular"
},
"statistics": {
"viewCount": "12343235",
"likeCount": "154201",
"dislikeCount": "2758",
"favoriteCount": "0",
"commentCount": "6943"
}
}
]
}

Please kindly include statistics Details in to this library,I think it's also very important.Thanks for developing this library.

Thankyou

error 403

Hi,

I would like to use your module but unfortunately I have an error: Error: Request failed with status code 403, I see where this could come from, I took your example program in javascript. Can you help me ?

Thank you in advance,
Theo

Video details

It has been asked multiple times, if we could include certain details like the duration or statistics for the videos. The problem is, that we'd have to do an additional request to fetch this info (see #51 for example).

Anyway, i think this module should do two things:

  • Add an option to the search function which fetches the details for every single video, too
  • Add a separate function to get the details of a specific video.

YouTubeSearchResults.thumbnails typed as string in index.d.ts

When attempting to access properties on thumbnails, an error occurs:

constructor(data: YouTubeSearchResults) {
    super()

    // This line gives a TS error "Property 'default' does not exist on type 'string'"
    let thumbnail = data.thumbnails.default.url
  }

However, this code will work as per Thumbnails API docs, since thumbnails is a nested object.

Working on a PR to resolve this.

Cannot import/require youtube-search module

Hi. I've got a problem importing your module. I did nothing but imported it and this showed up while running on webpack dev server.

The code I use:
import YoutubeSearch from 'youtube-search';

The error I get:
`WARNING in .//ajv/dist/ajv.bundle.js
Critical dependencies:
1:476-483 This seems to be a pre-built javascript file. Though this is possible, it's not recommended. Try to require the original source to get better results.
@ ./
/ajv/dist/ajv.bundle.js 1:476-483

ERROR in .//tough-cookie/lib/cookie.js
Module not found: Error: Cannot resolve module 'net' in C:\xampp\htdocs\apps\youtube\node_modules\tough-cookie\lib
@ ./
/tough-cookie/lib/cookie.js 32:10-24

ERROR in .//tough-cookie/package.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\tough-cookie\package.json Unexpected token (2:9)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:9)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/tough-cookie/lib/cookie.js 38:14-40

ERROR in .//forever-agent/index.js
Module not found: Error: Cannot resolve module 'net' in C:\xampp\htdocs\apps\youtube\node_modules\forever-agent
@ ./
/forever-agent/index.js 6:10-24

ERROR in .//forever-agent/index.js
Module not found: Error: Cannot resolve module 'tls' in C:\xampp\htdocs\apps\youtube\node_modules\forever-agent
@ ./
/forever-agent/index.js 7:10-24

ERROR in .//request/lib/har.js
Module not found: Error: Cannot resolve module 'fs' in C:\xampp\htdocs\apps\youtube\node_modules\request\lib
@ ./
/request/lib/har.js 3:9-22

ERROR in .//mime-db/db.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\mime-db\db.json Unexpected token (2:40)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:40)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/mime-db/index.js 11:17-37

ERROR in .//tunnel-agent/index.js
Module not found: Error: Cannot resolve module 'net' in C:\xampp\htdocs\apps\youtube\node_modules\tunnel-agent
@ ./
/tunnel-agent/index.js 3:10-24

ERROR in .//tunnel-agent/index.js
Module not found: Error: Cannot resolve module 'tls' in C:\xampp\htdocs\apps\youtube\node_modules\tunnel-agent
@ ./
/tunnel-agent/index.js 4:10-24

ERROR in .//har-schema/lib/afterRequest.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\afterRequest.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 4:16-46

ERROR in .//har-schema/lib/beforeRequest.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\beforeRequest.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 5:17-48

ERROR in .//har-schema/lib/browser.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\browser.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 6:11-36

ERROR in .//har-schema/lib/cache.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\cache.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 7:9-32

ERROR in .//har-schema/lib/content.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\content.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 8:11-36

ERROR in .//har-schema/lib/cookie.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\cookie.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 9:10-34

ERROR in .//har-schema/lib/creator.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\creator.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 10:11-36

ERROR in .//har-schema/lib/entry.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\entry.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 11:9-32

ERROR in .//har-schema/lib/har.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\har.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 12:7-28

ERROR in .//har-schema/lib/header.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\header.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 13:10-34

ERROR in .//har-schema/lib/log.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\log.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 14:7-28

ERROR in .//har-schema/lib/page.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\page.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 15:8-30

ERROR in .//har-schema/lib/pageTimings.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\pageTimings.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 16:15-44

ERROR in .//har-schema/lib/postData.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\postData.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 17:12-38

ERROR in .//har-schema/lib/query.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\query.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 18:9-32

ERROR in .//har-schema/lib/request.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\request.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 19:11-36

ERROR in .//har-schema/lib/response.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\response.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 20:12-38

ERROR in .//har-schema/lib/timings.json
Module parse failed: C:\xampp\htdocs\apps\youtube\node_modules\har-schema\lib\timings.json Unexpected token (2:6)
You may need an appropriate loader to handle this file type.
SyntaxError: Unexpected token (2:6)
at Parser.pp$4.raise (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:2221:15)
at Parser.pp.unexpected (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:603:10)
at Parser.pp.semicolon (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:581:61)
at Parser.pp$1.parseExpressionStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:966:10)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:730:24)
at Parser.pp$1.parseBlock (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:981:25)
at Parser.pp$1.parseStatement (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:709:33)
at Parser.pp$1.parseTopLevel (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:638:25)
at Parser.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:516:17)
at Object.parse (C:\xampp\htdocs\apps\youtube\node_modules\webpack\node_modules\acorn\dist\acorn.js:3098:39)
@ ./
/har-schema/lib/index.js 21:11-36
webpack: Failed to compile.`

TypeError: Cannot read property 'kind' of undefined

Searching for Minecraft results in this error:

TypeError: Cannot read property 'kind' of undefined

Call stack:

1    at /myapp/node_modules/youtube-search/index.js:79:25
        switch (item.id.kind) {

2    at Array.map (<anonymous>)

3    at Request._callback (/home/pasha/kids-api.safe.vision/node_modules/youtube-search/index.js:76:35)
        var findings = result.items.map(function (item) {

4    at Request.self.callback (/myapp/node_modules/request/request.js:186:22)
        self._callback.apply(self, arguments)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.