uniforms.normalMap is undefined while trying to apply normal to material texture

Hi all! I’ve been migrating an app that used r94 to r148. I do have this snippet of code that worked perfectly fine on the former version:

    if ( texture.normal ) {
      material.normalMap = loader.load( texture.normal.uri );
      material.normalMap.wrapS = RepeatWrapping;
      material.normalMap.wrapT = RepeatWrapping;

      material.normalScale =
        new Vector2(

          length * texture.normal.lengthRepeatScale,
          height * texture.normal.heightRepeatScale

But with the new version, it seems like the way data is handled has changed, so I get that the uniforms.normalMap property is undefined when trying to assign it the materials.normalMap property. The error comes from three.module.js itself. Any ideas on how to make this work on newer versions? Thanks in advance.

Do you mind demonstrating the runtime error with a live example like the following? three.js dev template - module - JSFiddle - Code Playground