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

Import does not work #319

Closed
dannysmc95 opened this issue Jan 27, 2020 · 1 comment
Closed

Import does not work #319

dannysmc95 opened this issue Jan 27, 2020 · 1 comment

Comments

@dannysmc95
Copy link

dannysmc95 commented Jan 27, 2020

Hello,

Cloned this and did the install, and then in the /src folder created a directory called modules and then created a file called network.ts. In there I wrote some code and this was fine, VSCode could not see an issue. I then did an import in the main file which was called: liberty.ts.

Then I did npm run build and this is the output:

src/liberty.ts:5:21 - error TS2307: Cannot find module './modules/network'.

5 import Network from './modules/network';
                      ~~~~~~~~~~~~~~~~~~~

Found 1 error.
@dannysmc95
Copy link
Author

Ignore, looks to be a permission issue.

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

1 participant