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

File '@spotify/web-scripts/config/tsconfig.json' not found. #310

Open
michalfialadev opened this issue May 15, 2023 · 2 comments
Open

File '@spotify/web-scripts/config/tsconfig.json' not found. #310

michalfialadev opened this issue May 15, 2023 · 2 comments

Comments

@michalfialadev
Copy link

michalfialadev commented May 15, 2023

Hi there,
I'm rather new to JS dev using npms, so the issue might be due to my inexperience, but when i yarn add ismobilejs, install goes through fine, the isMobile checks work perfectly, but i get a following (non breaking) error:
spotify-error
When i do a yarn in terminal, there seem to be no dependencies missing, since nothing gets installed, 0 problems. The node_modules folder doesn't have a @spotify package, do i need to install it to use isMobile (i hope not)? I tied just removing the extends line or the tsconfig.json file, but that didn't work either :/

Any ideas on how to get rid of the error?

@kaimallea
Copy link
Owner

Thanks for reporting; I'll take a look and see what's up. Usually, the error yo u're seeing can be resolved by running yarn install, to install dependencies (of which @spotify/web-scripts), but I bet you already tried that. Will circle back

@gilmarsquinelato
Copy link

Hello everyone!

I'm facing the same issue on some projects as well, and I guess that we can get it solved by simply specifying what files to include in the package 😄

This is happening because the entire repo is being added in the package while it shouldn't, for example: eslint config files, jest config, tsconfig.json, etc.

I think that a new release with this property added in package.json would solve the issue:

{
  "files": [
    "cjs",
    "dist",
    "esm",
    "types"
  ]
}

I hope this helps!

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

3 participants