-
Notifications
You must be signed in to change notification settings - Fork 416
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
invoke local "The webpack plugin could not find the configuration file" #511
Comments
It looks like |
Yes, but it looks more irritating that it tries to find a webpack.config.js
within the `.webpack` folder instead of the project root.
Can you try to remove the `webpackConfig` option from your project file (it
is the default anyway), or set it to a relative path
based on the project root if it is located anywhere else?
…On Wed, Jun 5, 2019 at 9:42 PM Ethan Setnik ***@***.***> wrote:
It looks like webpack:validate is invoked twice. Is this expected
behavior?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#511?email_source=notifications&email_token=ABKEZXV6ZAZBKHH67KKQYJLPZAJMDA5CNFSM4HUCCM72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXAZTKY#issuecomment-499227051>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABKEZXTLBWROHBUIZTIV52DPZAJMDANCNFSM4HUCCM7Q>
.
|
Yes unfortunately I've tried removing both the override I stepped through the validate logic in the debugger and found some strange things: The reason for this is that it's looking in: |
Also of note this issue still occurs if I use the |
Can anyone help with this? I'm still unable to make it work. |
@HyperBrain do you intend to look into this further? Since serverless-offline-scheduler relies on |
This issue also causes [email protected] to no longer be compatible with serverless-webpack |
@serverless-heaven/serverless-webpack-team @serverless-heaven/serverless-webpack-contributors , can anyone have a look here? |
@HyperBrain I traced this issue to my usage of |
Check out https://github.com/esetnik/serverless-webpack/tree/typescript-example-babel-loader-runtime-provided for an example project which demonstrates the issue.
|
bump? |
+1 |
I ended up with create two serverless files, one for developing in local (using serverless offline, typescript) and one for deploy (using webpack plugin) |
@bugb Would you mind providing a minimum reproducing repo? |
@vicary sure, I will update it in the next 2-3 hours, time for my dinner |
@vicary This is an advanced version (using express): |
@bugb Not sure if I misunderstood, a quick run of I don't see the error mentioned by the op in your pipelines too. |
@vicary , yes I have to make my code works, I mean I need to use 2 separated files
|
Whats the solution here? what causes this problem? |
@softmarshmallow See my last comment #511 (comment) for context. If you believe you are facing a different problem, please open a new issue. |
you can also check my repo here for an example: https://github.com/goserverless/serverless-typescript-example/releases/tag/v1.0.5 |
UPDATE: as stated in this comment, serverless-plugin-typescript is not needed when using serverless-webpack.
I found out that the order the plugins that appear in
permits to compile without any errors. The importance of the order is reported in the serverless-plugin-typescript docs page, but ignored in other pages. Could be useful to mention this across all the plugin doc pages that may be involved in this behavior. |
This is a (Bug Report)
Description
serverless invoke local -f <functionName>
doesn't workFor bug reports:
What went wrong?
A few weird errors occur:
webpack.config.js
file which is located at./webpack.config.js
What did you expect should have happened?
serverless invoke local
should work in a project that functions correctly withserverless-offline
What was the config you used?
What stacktrace or error message from your provider did you see?
The webpack plugin could not find the configuration file at: /Users/user/work/project/api/.webpack/test/webpack.config.js
Similar or dependent issue(s):
Additional Data
v5.3.0
v4.33.0
v1.44.1
macOS 10.14.5 (18F132)
The text was updated successfully, but these errors were encountered: