-
Notifications
You must be signed in to change notification settings - Fork 417
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
typescript import local file fails to "find module" #38
Comments
your |
From the typescript example, I'm running
|
gosh with node6 the whole ts example isn't working for me anymore xD I have no idea why this is not working, I believe it is a webpack configuration related issue but I'm not experienced with TS. Lets see if someone can work this out. Or if you do please report back. |
I have a fair bit of experience with webpack and the config is fine when you use webpack standalone. Ultimately I ended up using gulp to run webpack, then later run serverless via child_process.spawn. Make for a more reliable and customizable build. |
I had similar problem. Issue is in extensions array. For some reason it should contains empty extension, but then plain webpack command fails. Example: resolve: {
// Add `.ts` and `.tsx` as a resolvable extension.
extensions: ['.ts', '.tsx', '.js', '']
}, |
With the recently released version 2.0.0 of the plugin, any Webpack version can be used (it's a peer dependency now). Can you check if the issue still persists, when using a newer Webpack version? Additionally, we plan to remove the serve command completely in favor of the serverless-offline plugin (#135) which is the better option. The webpack plugin will then concentrate on the core features (packaging). |
I'll close this for now - please reopen if the issue still persists. |
Modifying the typescript example to use imports results in error.
blah.ts
handler.ts
running
serverless webpack serve
results in error:The text was updated successfully, but these errors were encountered: