GithubHelp home page GithubHelp logo

Failure console about altv-sit HOT 3 CLOSED

Robka87 avatar Robka87 commented on September 3, 2024
Failure console

from altv-sit.

Comments (3)

jonesXYZ avatar jonesXYZ commented on September 3, 2024 1

Wie dumm kann jemand sein?
Du: JA.

from altv-sit.

Robka87 avatar Robka87 commented on September 3, 2024

Newed Failure:

[17:13:07] Loading resource sit_02
(node:8700) Warning: To load an ES module, set "type": "module" in the package.j son or use the .mjs extension.
(node:8700) Warning: To load an ES module, set "type": "module" in the package.j son or use the .mjs extension.
/home/altv/server/resources/sit_02/server/index.js:1
import * as alt from 'alt-server';
^^^^^^

SyntaxError: Cannot use import statement outside a module
at wrapSafe (internal/modules/cjs/loader.js:979:16)
at Module._compile (internal/modules/cjs/loader.js:1027:27)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at ModuleWrap. (internal/modules/esm/translators.js:199:29)
at ModuleJob.run (internal/modules/esm/module_job.js:152:23)
at async Loader.import (internal/modules/esm/loader.js:166:24)
at async embedder_main_5.js:30:16
[17:13:07][Error] Failed to load resource sit_02

from altv-sit.

cptprice1139 avatar cptprice1139 commented on September 3, 2024

This is not a failure coming from the code. You need to add the following line to your package.json in your main server directory.

"type": "module"

the line to be added.

from altv-sit.

Related Issues (3)

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.