barbis
September 19, 2020, 9:20am
1
Hi,
since a couple of days I am experiencing a long load time of my app, 30 seconds where nothing happens!
I tried couple of things but I am not able to pinpoint the source of the problem and actually no idea how to troubleshoot it!
Not sure is related to the sockjs error shown.
Using Meteor with apollo, mysql and react.
On my console the database loads fine, then after 30 seconds the client loads. In between nothing
Tried loading another project and no problems there.
Any idea?
Thanks!
barbis
September 19, 2020, 2:06pm
2
Found the issue, made a mistake in importing an icon from @materialui /icons!
Here the link in case someone else has the same problem
opened 07:53AM - 26 Sep 19 UTC
closed 06:08AM - 28 Aug 21 UTC
confirmed
Project:Isobuild:Performance
<!--
* ❓ Questions?
Use Stack Overflow (http://stackoverflow.com/que… stions/tagged/meteor)
or start a discussion on the Meteor forums (https://forums.meteor.com/).
* 💡 Feature requests?
Visit the feature request repository (https://github.com/meteor/meteor-feature-requests).
* ❗️ Bug?
This is the right place!
Before reporting a bug, please check for existing or closed issues
first and read the instructions for filing a bug report:
https://github.com/meteor/meteor/blob/devel/CONTRIBUTING.md#reporting-a-bug-in-meteor
### This bug report should include:
- [ ] A short, but descriptive title. The title doesn't need "Meteor" in it.
- [ ] The version of Meteor showing the problem.
- [ ] The last version of Meteor where the problem did _not_ occur, if applicable.
- [ ] The operating system you're running Meteor on.
- [ ] The expected behavior.
- [ ] The actual behavior.
- [ ] A **simple** reproduction!
(example: A GitHub repository that anyone can clone to observe the problem.)
### Independent packages
Please ensure your issue is opened in the appropriate repository:
* Feature Requests: https://github.com/meteor/meteor-feature-requests
* Blaze: https://github.com/meteor/blaze/
* Docs: https://github.com/meteor/docs/
* Guide: https://github.com/meteor/guide
-->
Ubuntu 19.04
Non-working release: 1.8.2-rc.x
Working release: 1.8.1
I had a hard time finding out what making my app load infinitely, since I didn't get any feedback.
Using "import TagFaces from '@material-ui/icons/TagFaces';" syntax works well.
Using "import { TagFaces } from '@material-ui/icons';" syntax is broken.
I used this last syntax to import many icons, as it allows to avoid repeating "import ... from @m...".
Steps to reproduce:
```
meteor create --release 1.8.2-rc.3 --typescript typescript-material-app
cd typescript-material-app
meteor npm install @material-ui/core @material-ui/icons
meteor
```
Then in App.tsx:
```
// This works.
...
import TagFaces from '@material-ui/icons/TagFaces';
export default () => (
<div>
<h1>Welcome to Meteor! <TagFaces /></h1>
...
```
```
// This fails.
...
import { TagFaces } from '@material-ui/icons';
export default () => (
<div>
<h1>Welcome to Meteor! <TagFaces /></h1>
...
```
1 Like