Giter Site home page Giter Site logo

Loading module from “http://127.0.0.1:9000/src/index.tsx” was blocked because of a disallowed MIME type (“application/octet-stream”). about pubsec-info-assistant HOT 3 CLOSED

developer992 avatar developer992 commented on July 28, 2024
Loading module from “http://127.0.0.1:9000/src/index.tsx” was blocked because of a disallowed MIME type (“application/octet-stream”).

from pubsec-info-assistant.

Comments (3)

developer992 avatar developer992 commented on July 28, 2024

if i change this

<script type="module" src="/src/index.tsx"></script>

to this

<script type="module" src="index.tsx"></script>

then this happens:


11 4.816 vite v5.1.5 building for production...
#11 4.867 transforming...
#11 4.872 ✓ 1 modules transformed.
#11 4.873 x Build failed in 33ms
#11 4.878 error during build:
#11 4.878 Error: [vite]: Rollup failed to resolve import "index.tsx" from "/app/index.html".
#11 4.878 This is most likely unintended because it can break your application at runtime.
#11 4.878 If you do want to externalize this module explicitly add it to
#11 4.878 `build.rollupOptions.external`
#11 4.878     at viteWarn (file:///app/node_modules/vite/dist/node/chunks/dep-G-px366b.js:67108:27)
#11 4.878     at onwarn (file:///app/node_modules/@vitejs/plugin-react/dist/index.mjs:250:9)
#11 4.878     at onRollupWarning (file:///app/node_modules/vite/dist/node/chunks/dep-G-px366b.js:67133:9)
#11 4.878     at onwarn (file:///app/node_modules/vite/dist/node/chunks/dep-G-px366b.js:66840:13)
#11 4.878     at file:///app/node_modules/rollup/dist/es/shared/node-entry.js:18300:13
#11 4.878     at Object.logger [as onLog] (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:19957:9)
#11 4.878     at ModuleLoader.handleInvalidResolvedId (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:18901:26)
#11 4.878     at file:///app/node_modules/rollup/dist/es/shared/node-entry.js:18859:26
#11 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1
------
 > [node-builder 5/6] RUN npm run build:
4.878 If you do want to externalize this module explicitly add it to
4.878 `build.rollupOptions.external`
4.878     at viteWarn (file:///app/node_modules/vite/dist/node/chunks/dep-G-px366b.js:67108:27)
4.878     at onwarn (file:///app/node_modules/@vitejs/plugin-react/dist/index.mjs:250:9)
4.878     at onRollupWarning (file:///app/node_modules/vite/dist/node/chunks/dep-G-px366b.js:67133:9)
4.878     at onwarn (file:///app/node_modules/vite/dist/node/chunks/dep-G-px366b.js:66840:13)
4.878     at file:///app/node_modules/rollup/dist/es/shared/node-entry.js:18300:13
4.878     at Object.logger [as onLog] (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:19957:9)
4.878     at ModuleLoader.handleInvalidResolvedId (file:///app/node_modules/rollup/dist/es/shared/node-entry.js:18901:26)
4.878     at file:///app/node_modules/rollup/dist/es/shared/node-entry.js:18859:26
------

from pubsec-info-assistant.

dayland avatar dayland commented on July 28, 2024

We are not familiar with this error. It appears to be a local machine policy. If you use the GitHub Codespace as recommended in deployment this should not occur. https://github.com/microsoft/PubSec-Info-Assistant/blob/main/docs/deployment/deployment.md#development-environment-configuration

from pubsec-info-assistant.

developer992 avatar developer992 commented on July 28, 2024

i see where the problem is

you guys keep forgetting there was a python world before microsoft adopted it

from pubsec-info-assistant.

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.