Skip to content
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

Issue with 637.bundle.js #2

Open
Dorfeuheinz opened this issue Oct 2, 2023 · 4 comments
Open

Issue with 637.bundle.js #2

Dorfeuheinz opened this issue Oct 2, 2023 · 4 comments

Comments

@Dorfeuheinz
Copy link

jsonp chunk loading:27 Uncaught (in promise) ChunkLoadError: Loading chunk 637 failed.

This is the bug I get when I try to type anything in the code block

GET http://localhost:4000/assets/637.bundle.js net::ERR_ABORTED 404 (Not Found)

Please help. I need to use this locally. So just want the files that are necessary. currently im importing everything through the bundle.js. It also gives an error with the syntax-

...} as ICodeBlockConfigs (it has a problem with "as"
Idk whats going on

@bquangDinh
Copy link
Owner

The error says that it could not find the bundle file. You may want to check the path again to make sure it is correct. What does your folder structure look like?

@Dorfeuheinz
Copy link
Author

Dorfeuheinz commented Oct 3, 2023

The error says that it could not find the bundle file. You may want to check the path again to make sure it is correct. What does your folder structure look like?

sorry, yes it somehow does work now, albeit I have a few questions.

  1. Can we change the default CSS of the codeblock. I need a darker color
  2. How do we enable the auto-language detection feature of highlight.js
  3. The 637.bundle is around 5 MB. Should I handle all this within a web worker?
  4. I do still get an error in js when I try to write editorjs config as -> ...} as ICodeBlockConfigs. Apparently as is causing the error. Any idea why this is happening?

@bquangDinh
Copy link
Owner

  1. Yes you can change it to whatever you want
  2. I didn't add this feature since the bundle size is already large
  3. Related to question 2, I thought of many ways to reduce the size of the bundled file but they didn't work. You can you dynamic load to load it when you only need it, not when the page first loads in order to reduce loading time
  4. as is a feature in Typescript. If you're writing in Javascript, you don't use as

@Dorfeuheinz
Copy link
Author

Dorfeuheinz commented Oct 4, 2023

  1. Yes you can change it to whatever you want
  2. I didn't add this feature since the bundle size is already large
  3. Related to question 2, I thought of many ways to reduce the size of the bundled file but they didn't work. You can you dynamic load to load it when you only need it, not when the page first loads in order to reduce loading time
  4. as is a feature in Typescript. If you're writing in Javascript, you don't use as

thankyou so much for your help. I appreciate it. Although I have 1 question

& whats the use of-

  box-sizing: border-box;

  * {
    box-sizing: border-box;
  }

and

      &::selection {
        background-color: rgba(212, 236, 255, 0.5);
      }

      &::-moz-selection {
        background-color: rgba(212, 236, 255, 0.5);
      }

they seem to have no use? Also if I try to use an svg with a black background, for some reason its being rendered half black & half white whereas it should be totally white. I cant understand why. Any clue what css is messing this up?

20231005_185038

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants