Home>

■ What I went to

Create an instance for wordpress with Amazon lightx sail

Import an existing project

Assign your own domain

Static pages are loaded, but pages using JS are loaded by the browser
Loaded or not loaded

■ Error occurring (check with Chrome developer tools)

JQMIGRATE: Migrate is installed, version 1.4.1
autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 6 Uncaught Error: [$injector: modulerr] http://errors.angularjs.org/1.4.8/$injector/modulerr?p0=app456883&p1=Error%3A%20%5B%24injector%3Anomod%5D % 20http% 3A% 2F% 2Ferrors.angularjs.org% 2F1.4.8% 2F% 24injector% 2Fnomod% 3Fp0% 3Dapp456883% 0A% 20% 20% 20% 20at% 20http% 3A% 2F% 2Fmicxtest.work.% 2Fwp- content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8f3.js% 3A6% 3A416% 0A% 20% 20% 20% 20at% 20http% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fwp-content% 2Fcache% % 3A8% 3A1717% 0A% 20% 20% 20% 20at% 20b% 20 (http% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8f3.js% 3A % 20% 20% 20% 20at% 20http% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8f3.js% 3A8% 3A1502% 0A% 20% 20% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948 feb8f3.js% 3A8% 3A8760% 0A% 20% 20% 20% 20at% 20n% 20 (http% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8 )% 0A% 20% 20% 20% 20at% 20g% 20 (http% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8f3.js% 3A8% 3A8%) 20% 20% 20at% 20eb% 20 (http% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8f3.js% 3A8% 3A10405)% 0A% 20% 20c% 20 (http% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8f3.js% 3A7% 3A1485)% 0A% 20% 20% 20% 20% 3A% 2F% 2Fmicxtest.work.% 2Fwp-content% 2Fcache% 2Fautoptimize% 2Fjs% 2Fautoptimize_f300d438135d32ecfa4b8be948feb8f3.js% 3A7% 3A1798)
at autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 6
at autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 8
at n (autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 6)
at g (autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 8)
at eb (autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 8)
at c (autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 7)
at yc (autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 7)
at Zd (autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 7)
at HTMLDocument. (autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 21)
at i (jquery.js? ver = 11.24-wp: 2)
(anonymous) @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 6
(anonymous) @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 8
n @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 6
g @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 8
eb @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 8
c @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 7
yc @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 7
Zd @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 7
(anonymous) @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 21
i @ jquery.js? ver = 11.24-wp: 2
add @ jquery.js? ver = 11.24-wp: 2
n.fn.ready @ jquery.js? ver = 11.24-wp: 2
(anonymous) @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 21
(anonymous) @ autoptimize_f300d438135d32ecfa4b8be948feb8f3.js: 21

■ What I tried

Add the following to httpd.conf

AddType text/javascript .js

I am in trouble because I cannot isolate the cause.
Could you give me some advice?

  • Answer # 1

    For the time being, app456883 seems to be an error that the module is undefined.
    Is the file not read or is it in time?
    Or I can't tell if it couldn't be packaged at compile time

    If the file cannot be read
    The module in question in the browser source list
    I think it's 400 or 403

    If you can or cannot depending on the browser
    I think there are many cases where the dependencies are not resolved exactly.

    It depends on the module that is loading asynchronously, but it doesn't wait for loading
    If the module is cached or local
    The module is loaded in no time so no error occurs
    It's like an error if it's not cached or local

    If it depends on the browser
    I don't think the module is leaking at compile time,
    It works because it caches the code that is working normally depending on the browser
    There is a possibility that it is, so check it for the time being

    After that, the module name is different for each compilation
    The script that uses it keeps the old module name

  • Answer # 2

    The wordpress plugin was affecting