-
Notifications
You must be signed in to change notification settings - Fork 672
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
Imports not resolving properly during runtime #329
Comments
Hey, thanks for the report. I wonder if this is something with Typescript configuration? I can do simple:
with my babel config and I get:
The way the package is structured, it has an If you run |
I just tried with basic TypeScript by running:
And I got the same If you don't want to spend time figuring out what's going on (why the top-level index.js isn't exporting src/index.js) you can simply import like |
Thank you for getting back on this quickly, here is my tsconfig.json and we do not use babel at all.
ls command :
Without running my copy command all I can see is undefined (last line in the output)
Output:
Since my copy command works fine, we should be good for now and when I get time, I can look into it in detail. Thanks again. |
Hello
We are using this package for one for our serverless typescript projects and have been facing issue with the import. During runtime none of the imports from this package are resolving and we have to do a patch to make it work, Please find below the respective code and error we get unless we run the below command after npm install. Please advise.
Command to fix :
cp -r ./node_modules/@vendia/serverless-express/src/*.js ./node_modules/@vendia/serverless-express
If we run the above command after npm install, then it works fine.
Error:
Webpack:
Code: (only the interested part)
The text was updated successfully, but these errors were encountered: