-
-
Notifications
You must be signed in to change notification settings - Fork 590
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
syntax error: The requested module '@rollup/plugin-terser' does not provide an export named 'terser' #1397
Comments
The plugin uses a default export. This looks like a named import
Use: import terser from '@rollup/plugin-terser' |
@cwebba1 Where did you read about it, to import the plug-in that way ? I’m just asking out of curiosity, because the description must be fixed, if this is somewhere described that way. |
@shellscape can you close the issue? Thus, is not actually an issue and I have not the permission to do so ... |
Hi Peter, Thank you for your fast response. I made the change you indicated
and it works fine now. I am not an expert. I do not know the difference
between { terser } and terser.
Yes. I am working from the PostCSS ShortStack provided by Adam Argyle
approximately three years ago.
As you may know Rollup has upgraded to Rollup 3.0 and the Terser in use at
that time is now deprecated.
I posted a notice on Adam Argyle's OpenProps Discord the same day I
notified you. I will send another update with the correct answer.
Adam has posted a huge collection of development builds here.
***@***.***/collections/open-props
If any of these use the old Terser he will want to update to your new one.
Thank you for your work. Anyone who uses Rollup will want to upgrade to
your new Terser.
Best regards,
Craig Webb
917-797-0983
…On Mon, Jan 9, 2023 at 1:31 PM Peter ***@***.***> wrote:
@cwebba1 <https://github.com/cwebba1> Where did you read about it, to
import the plug-in that way ? I’m just asking out of curiosity, because the
description must be fixed, if this is somewhere described that way.
—
Reply to this email directly, view it on GitHub
<#1397 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADL5VOMDDMWBQEFT7JT7DLWRRKOZANCNFSM6AAAAAATU2EQVU>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Thank you again for your work and your quick response. Issue closed. |
@cwebba1 you are very welcome 😊 |
https://stackblitz.com/github/cwebba1/shortstack-openprops-cwebba
Expected Behavior
Adding
"@rollup/plugin-terser": "^0.3.0",
to package.json
Adding
import { terser } from '@rollup/plugin-terser'
to rollup.config.mjs
Actual Behavior
I am getting a syntax error I do not know how to resolve. the script does not find export for Terser.
Additional Information
[dev:*js] [!] SyntaxError: The requested module '@rollup/plugin-terser' does not provide an export named 'terser'
[dev:*js] file:///Users/cwebba1/Documents/Prototype_Library/2022_Prototype_Sandbox/PostCSS-Short-Stack/rollup.config.mjs?1673211937516:3
[dev:*js] import { terser } from '@rollup/plugin-terser'
[dev:*js] ^^^^^^
[dev:*js] SyntaxError: The requested module '@rollup/plugin-terser' does not provide an export named 'terser'
The text was updated successfully, but these errors were encountered: