I got an error when running npm run watch. How to fixed this error. Please help me - laravel

ERROR in ./resources/js/App.vue 1:0
Module parse failed: Unexpected token (1:0)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
|
webpack compiled with 4 errors

Related

Module parse failed: Unexpected token in npm package

I have a React App and I am trying to use react-player but I get this error:
Module parse failed: Unexpected token
I have 13 similar errors coming from: ReactPlayer.jsx, YouTube.jsx, Facebook.jsx, Twitch.jsx and so on. What can I do? Or an alternative for ReactPlayer?

Not able to generate extracted_queries.json using persistgraphql

I am trying to generate extracted_queries.json file using persistgraphql cli utility but when I am running the following command
persistgraphql src/app/ --add_typename
it results in this error
Unable to process input path src/app/. Error message:
Syntax Error GraphQL request (1:1) Unexpected <EOF>
1:
^
How can I fix this?
After looking for answers for a while I am able to make it work.
In my case, we have queries and mutations written in js files so below command worked for me
persistgraphql src/app --js --extension=js --add_typename

Error: command "bash" failed with no error message?

I am using terraform on my Mac system, and terraform apply results with below error
Error: command "bash" failed with no error message
on ssm.tf line 7, in data "external" "ssm-dynamic-general":
7: data "external" "ssm-dynamic-general" {
However there is nothing wrong in ssm.tf file, same runs perfectly fine in my another system.
Can some one please let me know what i am missing here?
You might have done what I accidentally did: not follow the external program protocol:
https://www.terraform.io/docs/providers/external/data_source.html#external-program-protocol
In my particular case, I failed to send the errors that were coming from my program to standard error. Instead, those errors were going to standard out.
That's why Terraform wasn't able to report on those errors.
So if you send any and all errors from your program to standard error using > &2, you should be able to see those errors when you run terraform plan.

how do i use the laravel talk functionality

i want to add a user conversation function in my app, but i am having problems installing the talk functionality. i have downloaded the project from github, but i was unable to use it because of this two errors
Warning: require(C:\xampp\htdocs\tok\bootstrap/../vendor/autoload.php): failed to open stream: No such file or directory in C:\xampp\htdocs\tok\bootstrap\autoload.php on line 17
Fatal error: require(): Failed opening required 'C:\xampp\htdocs\tok\bootstrap/../vendor/autoload.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\tok\bootstrap\autoload.php on line 17. is there a way out of???
does anyone know how use the talk functionality by nahid??
You just need to run the following in the project folder:
Composer Install
Here is a question with a similar issue that might help you get to the root cause: (possible duplicate question)
Laravel 5 Failed opening required bootstrap/../vendor/autoload.php

Objective Sharpie - Automated Binding of AWSCognito fails with "'AWSCore/AWSCore.h' file not found"

I'm trying to bind "AWSCognito" using Sharpie and Cocoapods using following command:
sharpie pod init -force ios AWSCognito && sharpie pod bind
It ran good but build was failed with following errors:
Parsing 1 header files...
While building module 'AWSCognito' imported from /private/var/folders/0r/y26zbgwn7kx_vn2gr8qjztlm0000gp/T/com.xamarin.ObjectiveSharpie/83195091ba274dc1817fbb79ea9f60ad.h:1:
In file included from :1:
In file included from _ usr /build/Release-iphoneos/AWSCognito/AWSCognito.framework/Headers/AWSCognito-umbrella.h:3:
In file included from _ _usr /build/Release-iphoneos/AWSCognito/AWSCognito.framework/Headers/AWSCognito.h:26:
_ _usr _/build/Release-iphoneos/AWSCognito/AWSCognito.framework/Headers/AWSCognitoService.h:19:9: fatal error:
'AWSCore/AWSCore.h' file not found
#import <AWSCore/AWSCore.h>
^
/private/var/folders/0r/y26zbgwn7kx_vn2gr8qjztlm0000gp/T/com.xamarin.ObjectiveSharpie/83195091ba274dc1817fbb79ea9f60ad.h:1:9: fatal error:
could not build module 'AWSCognito'
#import AWSCognito;
~~~~^~~~~~
Binding...
2 errors generated.
Error while processing /private/var/folders/0r/y26zbgwn7kx_vn2gr8qjztlm0000gp/T/com.xamarin.ObjectiveSharpie/83195091ba274dc1817fbb79ea9f60ad.h.
Submitting usage data to Xamarin...
Submitted - thank you for helping to improve Objective Sharpie!
Done. Exiting with error code 1.
error: Clang failed to parse input and exited with code 1```
I can't figure out why and how do I solve this issue. Any help is appreciated. Thanks.

Resources