OPINION
*314 Opinion by Chief
On appeal, appellant, Vantage Systems Design, Inc. (“Vantage”) challenges the trial court’s dismissal of its breach of contract and quantum meruit suit against ap-pellee, Raymondville Independent School District (“the District”), for lack of jurisdiction. In a single issue, advanced by four subissues, Vantage contends that the trial court erred in dismissing its suit. We affirm.
I. Background
On June 5, 2002, the District, the Willa-cy County Courthouse, Reber Memorial Public Library, the City of Raymondville, Raymondville Su Clinica, and Workforce Solutions entered into an interlocal collaborative agreement 2 whereby the entities agreed to apply for a $203,000 grant from the Telecommunications Infrastructure Fund Board for the installation of a wireless internet network in Willacy County. Under the terms of the agreement, the District administered the grant and accepted bids from 'contractors.
Vantage submitted a $144,168.50 bid and made a visual presentation to the District’s Board of Trustees at a board meeting. On March 31, 2003, Bernadette Cover, the District’s superintendent, wrote to Patrick Kennedy, Vantage’s district sales manager, that the District had accepted Vantage’s bid. Cover’s letter states in relevant part:
Please be advised that the RISD board unanimously approved the award of the Raymondville CN-3 grant project to Vantage Systems at a Special Meeting. ...
Raymondville ISD, as grant administrator, is a tax exempt organization. Therefore, the district will require that all subcontractors and third party vendors submit their invoices directly to, and for payment by the Raymondville ISD. Invoices should not include any Sales Tax component.
Please prepare your time-line information and estimated payment schedule, identifying such subcontracts and vendors.
Thereafter, Vantage sent a signed contract to the District, but the District never executed the contract. Vantage began the project and received at least one payment from the District on April 17, 2003.
In July 2003, Cover e-mailed Vantage to express concerns over the quality of its work and cost overruns. Vantage responded to Cover’s concerns and reassured her that the project would be properly completed. The District subsequently hired another contractor to complete the project.
On September 8, 2003, Vantage sued the District for breach of contract. The District answered with a general denial, specifically denied executing a contract, and asserted counterclaims for deceptive trade practice act violations, negligence, and fraudulent inducement. In 2006, the District moved for a traditional summary judgment, but the trial court denied its motion. The District filed a plea to the jurisdiction, which asserted governmental immunity from suit, and a notice of nonsuit as to its counterclaims. Vantage did not respond to the District’s jurisdictional plea. On April 30, 2008, the trial court dismissed Vantage’s suit. This appeal followed.
*315 II. STANDARD OF REVIEW
A plea to the jurisdiction challenges the trial court’s authority to determine the subject matter of the action.
Tex. Dep’t of Tramp, v. Jones,
We construe the pleadings liberally in favor of the pleader, look to the pleader’s intent, and accept as true the factual allegations in the pleadings.
See Miranda,
If the evidence creates a fact question regarding the jurisdictional issue, then the trial court cannot grant the plea to the jurisdiction, and the fact question will be resolved by the factfinder.
Id.
at 227-28;
Bland,
III. Governmental Immunity
Governmental immunity has two components: immunity from liability and immunity from suit.
Tooke v. City of Mexia,
Under Texas Local Government Code section 271.152, a local governmental entity authorized by statute or constitution to enter into contract, and which enters into a contract subject to the subchapter, waives sovereign immunity to suit for purpose of adjudicating a claim for breach of the contract. Tex. Loo. Gov’t Code Ann. § 271.152 (Vernon 2005). A contract subject to the subchapter is “a written contract stating the essential terms of the agreement for *316 providing goods or services to the local governmental entity that is properly executed on behalf of the local governmental entity.” Id. § 271.151(2) (Vernon 2005).
IV. Discussion
A. Breach of Contract
In its first subissue, Vantage argues that the trial court has jurisdiction over its claim because section 271.152 of the local government code waives governmental immunity for breach-of-contract claims and “at least some evidence exists” of a contract. In its first amended original petition, Vantage pleaded in relevant part:
On March 27, 2003, Defendant, RISD, awarded to Plaintiff [Vantage] a contract to complete the CN-3 Grant project for RISD. That contract called for Plaintiff to complete the work necessary to create a community wireless network for RISD and other entities. Plaintiff would show that Defendant RISD breached without excuse its contract on or about August 29, 2003.
In its plea to the jurisdiction, the District denied executing a contract with Vantage.
The record in this case lacks a written, executed contract between the parties.
See id.
Vantage concedes this point, yet it contends that a contract, even in a governmental immunity context, may consist of multiple documents.
See Courage Co. v. Chemshare Corp.,
Since that case, the Texas Legislature has enacted section 271.152 of the local government code, which governs the underlying dispute,
3
and we defer to the legislature to waive governmental immunity.
See
Tex. Gov’t Code Ann. § 311.034;
IT-Davy,
Vantage’s first subissue is overruled.
B. Quantum Meruit
By its second subissue, Vantage contends that section 271.152 of the local government code extends a waiver of governmental immunity to its quantum meruit claim. The Houston First Court of Appeals has held that the waiver of governmental immunity in section 271.152 does not extend to quantum meruit claims.
See
*317
City of Houston v. Swinerton Builders, Inc.,
Vantage’s second subissue is overruled.
C. Waiver
By its third subissue, Vantage argues that the District waived immunity by filing counterclaims and, after engaging in the litigation process for several years, is now precluded from regaining immunity. With regard to the District’s first argument, the supreme court has held that where a
governmental entity has joined into the litigation process by asserting its own affirmative claims for monetary relief, we see no ill befalling the governmental entity or hampering of its governmental functions by allowing adverse parties to assert, as an offset, claims germane to, connected with, and properly defensive to those asserted by the governmental entity.
Reata Constr. Co. v. City of Dallas,
Vantage also argues that the District is precluded from regaining immunity because it invoked the trial court’s jurisdiction by asserting counterclaims, pursuing discovery for years, and then unilaterally attempting to vitiate jurisdiction through nonsuit. Vantage contends that
Perry Homes v. Cull
supports its waiver argument.
We conclude that Vantage’s reliance on
Perry Homes
is misplaced. The principle issue in that case was whether the home-owning-plaintiffs in a construction defect case against a contractor waived their right to arbitration by opposing arbitration, engaging in discovery, and then insisting on arbitration on the eve of trial.
See id.
at 584-85. The principle issue in this ease is not a contractual right but a fundamental jurisdictional concept— governmental immunity. And, it is well established that subject-matter jurisdiction is authorized by constitution or statute, and it is not something the parties can
*318
confer by consent or waiver or abrogate by agreement.
Fernandez v. Frost Nat’l Bank,
Vantage’s third subissue is overruled.
D. Effect of Nonsuit
In what we construe as Vantage’s fourth subissue, it argues that the District’s counterclaim is still effective because no order dismissing it has been entered, and even if a dismissal order were signed, the withdrawn counterclaim serves as some evidence of a written contract. But, as we have already held, the local government code’s waiver of governmental immunity requires a written contract, not some evidence of a written contract. With regard to the nonsuit, we conclude, under the instant circumstances, that it took effect when it was filed.
See Univ. of Tex. Med. Branch at Galveston v. Estate of Blackmon,
Vantage’s fourth subissue is overruled.
V. Conclusion
The trial court’s dismissal order is affirmed.
Notes
. On our own motion, we withdraw our previously issued memorandum opinion and judgment and substitute this opinion in its place.
. See Tex Gov't Code Ann. § 791.011 (Vernon Supp. 2008) (providing that local governments may contract with each other for the provision of governmental services).
. Although the effective date of this statute was September 1, 2005, the statute also applies to claims arising under a contract executed before the effective date if sovereign immunity has not been waived with respect to the claim before the effective date. Act of May 23, 2005, 79th Leg., R.S., ch. 604, §§ 2-3, 2005 Tex. Gen. Laws 1548, 1549. Because the contract was allegedly formed in March 2003, we analyze Vantage’s claim under section 271.152 of the local government code.
.
See also City of Dallas v. Martin,
