-
Notifications
You must be signed in to change notification settings - Fork 25
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
Warning: Entry module "src/server.js" is implicitly using "default" export mode #54
Comments
Looks like you updated Rollup but not Sapper, the errors stems from |
Hi again, I do have latest Sapper 0.28.3 and everything else updated to latest versions as well. This warning appears when adding export default to "src/server.js" as described in the docs |
@thgh I don't understand if we're supposed to add |
It should be a property of the output object: https://rollupjs.org/guide/en/#outputexports |
I see.. Yeah, you're correct. Except it should be added to the output object under the server config, not the client. export default {
client: {...},
server: {
input: config.server.input(),
output: {...config.server.output(), exports: 'default'},
... |
@TheSimpleZ Thanks for figuring it out, that makes way more sense 😛 Sidenote: another option is to write |
Since updating sapper I've been getting this warning:
Entry module "src/server.js" is implicitly using "default" export mode, which means for CommonJS output that its default export is assigned to "module.exports". For many tools, such CommonJS output will not be interchangeable with the original ES module. If this is intended, explicitly set "output.exports" to either "auto" or "default", otherwise you might want to consider changing the signature of "src/server.js" to use named exports only.
The text was updated successfully, but these errors were encountered: