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

Error: Can't resolve 'atpl' #334

Closed
daolou opened this issue Aug 17, 2020 · 2 comments
Closed

Error: Can't resolve 'atpl' #334

daolou opened this issue Aug 17, 2020 · 2 comments

Comments

@daolou
Copy link

daolou commented Aug 17, 2020

https://bundlephobia.com/result?p=@jsany/cli-kit

Stacktrace:

ModuleNotFoundError: 
Module not found: 
Error: Can't resolve 'atpl' in '/tmp/tmp-build/packages/build-@jsanycli-kit-0fE/node_modules/consolidate/lib'

image

this error due to badge throw bundlephobia inaccessible

detail: pastelsky/bundlephobia#387

@jbcastro
Copy link

I had this problem, it stemmed from Visual Studio Code. I was writing "const" but it took that as autocomplete or something as "cons" so it added "import cons from "consolidate";" to the top of my file. I finally figured it out by deleting the consolidate folder from node_modules, it then pointed to which component file was showing "import cons from "consolidate";" at the top.

So delete consolidate folder from node_modules, find what file is asking for "import cons from "consolidate";", delete that line. And if you're so inclined do NPM install again.

@daolou
Copy link
Author

daolou commented Feb 22, 2021

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