question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New export type broke lots of apps

See original GitHub issue

Hi there,

Your 3.3.0 update just broke all of our apps. We’re using @ant-design/colors, which uses tinycolor, and the 3.3.0 ES module exports broke our apps with this error:

import { tinycolor } from './index';
^^^^^^
Cannot use import statement outside a module

It might be an issue with @ant-design/colors as well, but I don’t think 3.3.0 is backward-compatible with 3.2.1. It’s always better to respect semver and not make breaking changes on minor version updates 🤞

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
scttcpercommented, Feb 9, 2021

@steezeburger since it sounds like you’re using yarn you can use resolutions https://classic.yarnpkg.com/en/docs/selective-version-resolutions/

Adding a resolution to your package.json and then running yarn install should fix it until they release a new version.

// package.json
{
  "resolutions": {
    "@ant-design/colors": "5.0.0"
  }
}

You might also be able to add @ant-design/colors to your dependencies pinned to “5.0.0” and get that specific version instead of 5.1.0

see also - https://github.com/ant-design/ant-design-colors/issues/77

2reactions
scttcpercommented, Dec 13, 2020

🎉 This issue has been resolved in version 3.3.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Read more comments on GitHub >

github_iconTop Results From Across the Web

Power Platform Solution Export and Import Issues
We review some of the issues to look out for and thinking about when moving Power Platform environments.
Read more >
Fix export issues in Premiere Pro - Adobe Support
Fix issues in Adobe Premiere Pro that cause an "Error while compiling" error message when rendering or exporting.
Read more >
Documentation - TypeScript 3.8
TypeScript 3.8 adds a new syntax for type-only imports and exports. ... It's going to continue to be the default, and is a...
Read more >
Common issues and resolutions for Power Apps
A list of common issues and resolutions within Power Apps. ... update broken legacy name references to the new data source name after ......
Read more >
Understanding Modules and Import and Export Statements in ...
To demonstrate how to use this, update your functions. js file to be a module and export the functions. You will add export...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found