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

snowpack resolve error when folder name same with a file #2501

Closed
joebnb opened this issue Jan 28, 2021 · 2 comments
Closed

snowpack resolve error when folder name same with a file #2501

joebnb opened this issue Jan 28, 2021 · 2 comments

Comments

@joebnb
Copy link

joebnb commented Jan 28, 2021

if NAMEA.ts and NAMEA folder exist in same folder,snowpack will generate wrong code

folderA:
  |-NameA dir
  |     | - file1.ts
  |     | - file2.ts
  | NameA.ts

import x from './somepath/NameA';

snowpack will genenrate dependecies to load folderA/NameA/index.ts (actually this file not exist),but NameA.ts not required,i think in this case require file at first is a good choice

@fabryscript
Copy link

having the same error and I was literally gonna cry, I fixed it by obv changing the folder name, still an annoying thing tho

@FredKSchott
Copy link
Owner

Confirmed fixed in #2707

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