-
-
Notifications
You must be signed in to change notification settings - Fork 877
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
Missing modules in AJV #373
Comments
What is the version? Wasn't it solved by #363? |
4.10.0:
5.0.0-beta.1:
|
Webpack doesn't seem to have a way to manage optional dependencies. In any case, these messages are warnings, not errors, they seem to be manageable. See #117 (comment) for example. |
Thanks, it helped new webpack.IgnorePlugin(/regenerator|nodent|js-beautify/, /ajv/) |
Actually I still see these warnings at the end of |
thanks ;) |
Resolved in 5.0.1-beta.0 |
Neither v5-beta / Webpack ignore is solving this issue. @epoberezkin can't you fix the module to work as webpack expected with the sources instead of the dist file? |
Is it |
|
Does removing the line above solve the issue? |
Nope.. it's creating another errors:
```
[0] *WARNING in ./~/ajv/lib/async.js*
*[0]* Critical dependencies:
[0] 96:20-33 the request of a dependency is an expression
[0] 119:15-28 the request of a dependency is an expression
[0] @ ./~/ajv/lib/async.js 96:20-33 119:15-28
[0]
[0] *WARNING in ./~/ajv/lib/compile/index.js*
*[0]* Critical dependencies:
[0] 13:21-34 the request of a dependency is an expression
[0] @ ./~/ajv/lib/compile/index.js 13:21-34
[0]
[0] *WARNING in ./~/ajv/lib/ajv.d.ts*
*[0]* Module parse failed: /home/vagrant/sites/
account-local.metartnetwork.com/node_modules/ajv/lib/ajv.d.ts Unexpected
token (1:8)
[0] You may need an appropriate loader to handle this file type.
[0] SyntaxError: Unexpected token (1:8)
[0] at Parser.pp$4.raise (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:2221:15)
[0] at Parser.pp.unexpected (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:603:10)
[0] at Parser.pp.semicolon (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:581:61)
[0] at Parser.pp$1.parseExpressionStatement (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:966:10)
[0] at Parser.pp$1.parseStatement (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:730:24)
[0] at Parser.pp$1.parseTopLevel (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:638:25)
[0] at Parser.parse (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:516:17)
[0] at Object.parse (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:3098:39)
[0] at Parser.parse (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/webpack/lib/Parser.js:902:15)
[0] at DependenciesBlock.<anonymous> (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/webpack/lib/NormalModule.js:104:16
)
[0] @ ./~/ajv/lib ^\.\/.*$
[0]
[0] *WARNING in ./~/ajv/lib/dot/_limitProperties.jst*
*[0]* Module parse failed: /home/vagrant/sites/
account-local.metartnetwork.com/node_modules/ajv/lib/dot/_limitProperties.jst
Unexpected character '#' (1:2)
[0] You may need an appropriate loader to handle this file type.
[0] SyntaxError: Unexpected character '#' (1:2)
[0] at Parser.pp$4.raise (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:2221:15)
[0] at Parser.pp$7.getTokenFromCode (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:2756:10)
[0] at Parser.pp$7.readToken (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:2477:17)
[0] at Parser.pp$7.nextToken (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:2468:15)
[0] at Parser.pp$7.next (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:2413:10)
[0] at Parser.pp.eat (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:536:12)
[0] at Parser.pp.expect (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:597:10)
[0] at Parser.pp$1.parseBlock (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:979:10)
[0] at Parser.pp$1.parseStatement (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:709:33)
[0] at Parser.pp$1.parseBlock (/home/vagrant/sites/
account-local.metartnetwork.com/node_modules/acorn/dist/acorn.js:981:25)
[0] @ ./~/ajv/lib ^\.\/.*$
```
this is not the full errors, but it's small part of it.
I think it's should be the very top priority of this project to fit modern
build modules.
…On Sun, Jan 22, 2017 at 8:37 PM, Evgeny Poberezkin ***@***.*** > wrote:
Does removing the line above solve the issue?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#373 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AB5hbRPHwnB6EOqgYD3kevTyDaJmj3QMks5rU6IDgaJpZM4LJEhM>
.
--
Best Regards,
Idan Gozlan, +972542251188.
P *Please consider the environment before printing this email.*
|
@idangozlan I think you are using 4.x.x rather than beta version (5.0.1-beta). These optional dependencies are only removed in beta version, it won't be changed in 4.x.x. |
Why webpack is trying to parse .jst files I have no idea - they are not required |
hi guys, |
It's not the same problem really, it's webpack configuration issue - how to make it to ignore everything but js (or just ignore jst) |
Webpack cant also ignore these files as they will be needed, probably loading them into |
They are not used at run-time so they need to be ignored in webpack. |
Upgraded |
after using AJV with webpack there is missing modules...
WARNING in ./
/ajv/lib/async.js/ajv/lib/async.js 95:20-47Module not found: Error: Cannot resolve module 'regenerator' in /home/kepro/Projects/node_modules/ajv/lib
@ ./
WARNING in ./
/ajv/lib/async.js/ajv/lib/async.js 116:26-48Module not found: Error: Cannot resolve module 'nodent' in /home/kepro/Projects/node_modules/ajv/lib
@ ./
WARNING in ./
/ajv/lib/compile/index.js/ajv/lib/compile/index.js 8:42-69Module not found: Error: Cannot resolve module 'js-beautify' in /home/kepro/Projects/node_modules/ajv/lib
@ ./
The text was updated successfully, but these errors were encountered: