microsoft / PubSec-Info-Assistant

Information Assistant, built with Azure OpenAI Service, Industry Accelerator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

developer992 opened this issue · comments

Where is this coming from ?

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
------

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

i see where the problem is

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