Archive

09月 2024

Showing 3 out of total 8

Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode.
Author : Publish Time : 16 Sep 2024 08:49:11

Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode.

this error happened when i add some js var before the html start

<?php echo '<script>var site_url = "' . $siteUrl . '";  </script>';?>
<!DOCTYPE html>
<html lang="en">
<head>
 
so move 
 
<?php echo '<script>var site_url = "' . $siteUrl . '";  </script>';?>
after <!DOCTYPE html>
type 'Null' is not a subtype of type 'String'
Author : Publish Time : 16 Sep 2024 08:48:37

type 'Null' is not a subtype of type 'String'

or smilar error

type 'String' is not a subtype of type 'int' of 'value'

 

for i have design map 

var _params = {
      'id': widget._userOverviewId (int value) ,
  };

so the type will be Map<string,int> when add string value to this map , error will show

so declare the 

Map<String, dynamic> params   not dynamic var 
Uncaught SyntaxError: Cannot use import statement outside a module (at index.js:2:1)
Author : Publish Time : 10 Sep 2024 12:16:11

Uncaught SyntaxError: Cannot use import statement outside a module (at index.js:2:1)