Giter Site home page Giter Site logo

Range module acequire fail about ace-diff HOT 3 CLOSED

ace-diff avatar ace-diff commented on June 7, 2024
Range module acequire fail

from ace-diff.

Comments (3)

JackuB avatar JackuB commented on June 7, 2024

Hey, got more details on how you run ace-diff?

from ace-diff.

luocongqiu avatar luocongqiu commented on June 7, 2024

Hey, I use ace-diff in a angular project

component

`import { AfterViewInit, Component, ElementRef, OnDestroy, OnInit } from '@angular/core';

import AceDiff from 'ace-diff/src';
import * as ace from 'brace';

@component({
selector: 'ai-select-c',
templateUrl: 'test.component.html',
styleUrls: ['test.scss']
})
export class TestComponent implements OnInit, AfterViewInit, OnDestroy {

constructor(private elementRef: ElementRef<HTMLElement>) {
}

ngOnInit(): void {
}


ngAfterViewInit(): void {

    const differ = new AceDiff({
        ace, // using Brace
        element: this.elementRef.nativeElement,
        left: {
            content: 'your first file content here'
        },
        right: {
            content: 'your second file content here'
        }
    });
    console.info(differ);
}

ngOnDestroy(): void {
}

}
`
console

Error: Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff
at new L (ace-diff.min.js:30)

from ace-diff.

JackuB avatar JackuB commented on June 7, 2024

🎉 This issue has been resolved in version 3.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

from ace-diff.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.