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

[web] Uncaught TypeError: Cannot read properties of undefined (reading 'src__prism') #14

Open
rootasjey opened this issue May 8, 2023 · 1 comment

Comments

@rootasjey
Copy link

Hi,
First of all, thanks for this package.
It seems that this repository example does not work on web (chrome) due to a prism issue.

Uncaught SyntaxError: Unexpected token 'false'
Uncaught caught SyntaxError: Unexpected token 'false'
Uncaught TypeError: Cannot read properties of undefined (reading 'src__prism')
Uncaught TypeError: Cannot read properties of undefined (reading 'src__prism')
  at load__packages__flutter_prism__src__prism_dart (prism.dart.lib.js:16:67)
  at Object.execCb (require.js:1696:33)
  at Module.check (require.js:883:51)
  at Module.<anonymous> (require.js:1139:34)
  at require.js:134:23
  at require.js:1189:21
  at each (require.js:59:31)
  at Module.emit (require.js:1188:17)
  at Module.check (require.js:938:30)
  at Module.<anonymous> (require.js:1139:34)
  at require.js:134:23
  at require.js:1189:21
  at each (require.js:59:31)
  at Module.emit (require.js:1188:17)
  at Module.check (require.js:938:30)
  at Module.<anonymous> (require.js:1139:34)
  at require.js:134:23
  at require.js:1189:21
  at each (require.js:59:31)
  at Module.emit (require.js:1188:17)
  at Module.check (require.js:938:30)
  at Module.<anonymous> (require.js:1139:34)
  at require.js:134:23
  at require.js:1189:21
  at each (require.js:59:31)
  at Module.emit (require.js:1188:17)
  at Module.check (require.js:938:30)
  at Module.<anonymous> (require.js:1139:34)
  at require.js:134:23
  at require.js:1189:21
  at each (require.js:59:31)
  at Module.emit (require.js:1188:17)
  at Module.check (require.js:938:30)
  at Module.<anonymous> (require.js:1139:34)
  at require.js:134:23
  at require.js:1189:21
  at each (require.js:59:31)
  at Module.emit (require.js:1188:17)
  at Module.check (require.js:938:30)
  at Module.enable (require.js:1176:22)
  at Module.init (require.js:788:26)
  at callGetModule (require.js:1203:63)
  at Object.completeLoad (require.js:1590:21)
  at HTMLScriptElement.onScriptLoad (require.js:1717:29)

Steps to reproduce:

  • Clone this repository: gh repo clone tagnote-app/markdown_viewer
  • Navigate to the example folder: cd makdown_view/example
  • Run the example: flutter run -d chrome

Configuration:

  • Flutter 3.7.12
  • Dart 2.19.2
  • Device: web (chrome)
@chenzhiguang
Copy link
Contributor

chenzhiguang commented May 9, 2023

@rootasjey Hi! Thank you too, I will check it later soon.

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