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

I'm getting this error when I was trying to use this in reactjs #21

Closed
pratik9722 opened this issue Sep 2, 2020 · 5 comments
Closed
Assignees
Labels
help wanted Extra attention is needed

Comments

@pratik9722
Copy link

./src/tourguidejs/tourguide.esm.js
Line 8:172: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:541: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:3717: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:4877: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:5761: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:7802: Expected an assignment or function call and instead saw an expression no-unused-expressions

@PhilippeTrounev
Copy link
Contributor

@andeh38 can you please take a look and investigate this

@andeh38
Copy link

andeh38 commented Sep 3, 2020

Try to import Tourguide module like in new version of readme

@pratik9722
Copy link
Author

pratik9722 commented Sep 3, 2020

I was following this https://www.npmjs.com/package/tourguidejs

and I did
import "./node_modules/tourguide/tourguide.css";
import Tourguide from "./node_modules/tourguide/tourguide.esm.js";

but it gives me these errors
./src/tourguidejs/tourguide.esm.js
Line 8:172: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:541: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:3717: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:4877: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:5761: Expected an assignment or function call and instead saw an expression no-unused-expressions
Line 8:7802: Expected an assignment or function call and instead saw an expression no-unused-expressions

after that I did this
import Tourguide from 'tourguidejs';
import './tourguide.css';

(& of course, you have to do this npm i tourguidejs)
and it's working! thank you for making this script.

@syJSdev
Copy link
Contributor

syJSdev commented Jan 6, 2021

@PhilippeTrounev
This issue should be closed. he solves the problem.

@syJSdev syJSdev closed this as completed Jan 6, 2021
@syJSdev syJSdev self-assigned this Jan 6, 2021
@syJSdev
Copy link
Contributor

syJSdev commented Jan 6, 2021

Note: if you have still had errors, try these solutions.

add .eslintignore to the root directory

file: .eslintignore

...
# root node_modules
node_modules
# nested node_modules
**/node_modules
...

@syJSdev syJSdev added the help wanted Extra attention is needed label Jan 21, 2021
@syJSdev syJSdev pinned this issue Jan 21, 2021
@it-s it-s unpinned this issue Dec 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

4 participants