Sign in to follow this  
Sme

Turn off compiler warnings

Recommended Posts

Is there a way to suppress the warnings when compiling, for example,

Quote

 

WARNING in ./node_modules/babylonjs/babylon.js

Module not found: Error: Can't resolve 'oimo' in '...'

 

As far as I'm aware, I don't need to use  any functionality cannon, earcut, or oimo (i'm getting warnings for all 3).

If it matters, I'm using VSCode, TypeScript, and webpack-dev-server for my development environment.

Thanks

Share this post


Link to post
Share on other sites

Hello and welcome !

To stop these warnings you have to specify them as externals in your webpack's config file, also please go through https://doc.babylonjs.com/features/npm_support, it contains all the necessary information.

externals: {
        "oimo": true,
        "cannon": true,
        "earcut": true
    },

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.