Comments (3)
Hi there,
It turned out to be a Jest/Create-react-app issue. I was able to resolve by changing my test command from:
"react-app-rewired test"
to:
"react-app-rewired test --transformIgnorePatterns \"node_modules/(?!(grommet-controls))/\""
Jest assumes that all installed packages in node_modules has been transpiled to ES5, and if they aren't (which grommet-controls is not -- i.e. it does not have a dist folder containing transpiled exports) they need to be exempted from the default ignore pattern of "node_modules".
I by no means know 100% of what I'm talking about, but it appears that grommet-controls has a rollup config that would do the transpilation and put it in a "dist" folder. If you were to upload the package with a dist folder and with the module exports pointing to it, then this would not happen. For example, if you look at the index of the 'grommet' module, it is pointing to the components folder which is comprised of transpiled es5 code.
Either way, I've resolved on my end! Thanks.
from grommet-controls.
Hi - I am not sure about the error, but I think you are not using the named imports :
import { Tag } from 'grommet-controls'
from grommet-controls.
Thanks a lot, i will check on my end of i can also fix the rollup config
from grommet-controls.
Related Issues (20)
- [feature req] Dissociate scrolling of left and right side parts
- TextAreaField can not fill area
- DateInput maskFormat and cal picking produce an error HOT 4
- The PasswordInput component do not change to the hidden icon when is type password
- Strorybook freezes when trying to switch between menu items HOT 3
- DateInput: would like to control icon size and position (padding)
- DateInput: Add locale to textinput HOT 2
- VerticalMenu does NOT re-render when we add a widget in an existing item HOT 2
- Grommer Controls website is broken HOT 4
- DateInput displays invalid date string
- Documentation is dead HOT 2
- How to remove style?
- filterByFocusable is removed in grommet release 2.11 HOT 5
- Extra icon with PasswordInput control HOT 1
- Broken on IE 11
- Not working in next.js HOT 3
- PagingTable Column decorations HOT 3
- PagingTable, bottom page number button and input text is not working as expected HOT 5
- Email input skips ‘.’ HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grommet-controls.